Skip to content

Commit 2dc7017

Browse files
authored
Merge pull request #106 from amethyst/hotfix-import-errors-testing-binary
Fixed import errors in tester binary code.
2 parents 4f5615e + 6671c90 commit 2dc7017

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/bin/laminar-tester.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::time::{Duration, Instant};
1313

1414
use clap::App;
1515

16-
use laminar::{net, DeliveryMethod, Packet};
16+
use laminar::{net, DeliveryMethod, Packet, config};
1717

1818
fn main() {
1919
let yaml = load_yaml!("cli.yml");
@@ -70,7 +70,7 @@ fn process_client_subcommand(m: &clap::ArgMatches<'_>) {
7070
}
7171

7272
fn run_server(socket_addr: &str) {
73-
let network_config = net::NetworkConfig::default();
73+
let network_config = config::NetworkConfig::default();
7474
let mut udp_server = net::UdpSocket::bind(socket_addr, network_config).unwrap();
7575
let mut packet_throughput = 0;
7676
let mut packets_total_received = 0;
@@ -97,7 +97,7 @@ fn run_server(socket_addr: &str) {
9797
}
9898

9999
fn run_client(test_name: &str, destination: &str, endpoint: &str, pps: &str, test_duration: &str) {
100-
let network_config = net::NetworkConfig::default();
100+
let network_config = config::NetworkConfig::default();
101101
let mut client = match net::UdpSocket::bind(endpoint, network_config.clone()) {
102102
Ok(c) => c,
103103
Err(e) => {

0 commit comments

Comments
 (0)