Rename constructors
This commit is contained in:
parent
1bcf3891b4
commit
e9ee020b5f
|
@ -138,7 +138,7 @@ fn main() {
|
|||
let respond_socket = UdpSocket::bind(local.clone()).unwrap();
|
||||
|
||||
eprintln!("starting server...");
|
||||
let rpu = Rpu::new1(
|
||||
let rpu = Rpu::new(
|
||||
bank,
|
||||
last_id,
|
||||
Some(Duration::from_millis(1000)),
|
||||
|
|
|
@ -24,7 +24,7 @@ pub struct Rpu {
|
|||
}
|
||||
|
||||
impl Rpu {
|
||||
pub fn new1<W: Write + Send + 'static>(
|
||||
pub fn new<W: Write + Send + 'static>(
|
||||
bank: Bank,
|
||||
start_hash: Hash,
|
||||
tick_duration: Option<Duration>,
|
||||
|
|
|
@ -199,7 +199,7 @@ mod tests {
|
|||
let broadcast_socket = UdpSocket::bind(local).unwrap();
|
||||
let respond_socket = UdpSocket::bind(local.clone()).unwrap();
|
||||
|
||||
let rpu = Rpu::new1(
|
||||
let rpu = Rpu::new(
|
||||
bank,
|
||||
alice.last_id(),
|
||||
Some(Duration::from_millis(30)),
|
||||
|
@ -254,7 +254,7 @@ mod tests {
|
|||
let broadcast_socket = UdpSocket::bind(local).unwrap();
|
||||
let respond_socket = UdpSocket::bind(local.clone()).unwrap();
|
||||
|
||||
let rpu = Rpu::new1(
|
||||
let rpu = Rpu::new(
|
||||
bank,
|
||||
alice.last_id(),
|
||||
Some(Duration::from_millis(30)),
|
||||
|
@ -405,7 +405,7 @@ mod tests {
|
|||
let broadcast_socket = UdpSocket::bind(local).unwrap();
|
||||
let respond_socket = UdpSocket::bind(local.clone()).unwrap();
|
||||
|
||||
let rpu = Rpu::new1(
|
||||
let rpu = Rpu::new(
|
||||
leader_bank,
|
||||
alice.last_id(),
|
||||
None,
|
||||
|
|
|
@ -23,7 +23,7 @@ pub struct Tpu {
|
|||
}
|
||||
|
||||
impl Tpu {
|
||||
pub fn new1<W: Write + Send + 'static>(
|
||||
pub fn new<W: Write + Send + 'static>(
|
||||
bank: Bank,
|
||||
start_hash: Hash,
|
||||
tick_duration: Option<Duration>,
|
||||
|
|
Loading…
Reference in New Issue