Rename constructors

This commit is contained in:
Greg Fitzgerald 2018-05-15 10:45:33 -06:00
parent 1bcf3891b4
commit e9ee020b5f
4 changed files with 6 additions and 6 deletions

View File

@ -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)),

View File

@ -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>,

View File

@ -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,

View File

@ -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>,