diff --git a/Cargo.lock b/Cargo.lock index aca9077..0da7a1c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -173,7 +173,7 @@ dependencies = [ "aho-corasick 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", "regex-syntax 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "thread_local 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", + "thread_local 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", "utf8-ranges 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -213,7 +213,7 @@ dependencies = [ [[package]] name = "thread_local" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "thread-id 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/benches.rs b/src/benches.rs index b7b47de..4ad5e78 100644 --- a/src/benches.rs +++ b/src/benches.rs @@ -155,7 +155,7 @@ fn epoll_wait(b: &mut Bencher) { #[bench] fn handle_interface_data(b: &mut Bencher) { let mut node = GenericCloud::::new( - Device::dummy("vpncloud0", "/dev/null").unwrap(), "127.0.0.1:0", None, + Device::dummy("vpncloud0", "/dev/null").unwrap(), 0, None, Box::new(SwitchTable::new(300)), 1800, true, true, vec![], Crypto::None ); let mut data = [0; 1500]; @@ -169,7 +169,7 @@ fn handle_interface_data(b: &mut Bencher) { #[bench] fn handle_net_message(b: &mut Bencher) { let mut node = GenericCloud::::new( - Device::dummy("vpncloud0", "/dev/null").unwrap(), "127.0.0.1:0", None, + Device::dummy("vpncloud0", "/dev/null").unwrap(), 0, None, Box::new(SwitchTable::new(300)), 1800, true, true, vec![], Crypto::None ); let addr = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(127, 0, 0, 1), 1));