Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
github-af committed Jul 29, 2024
1 parent 5e56460 commit 5d77571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/diode-flood-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ fn main() {
if let Some(to_tcp) = to_tcp {
log::debug!("TCP connect to {}", to_tcp);
let diode = net::TcpStream::connect(to_tcp).expect("TCP connect");
start(diode, buffer_size)
start(diode, buffer_size, 1)
} else {
let to_unix = to_unix.expect("to_tcp and to_unix are mutually exclusive");
log::debug!("Unix connect to {}", to_unix.display());
let diode = unix::net::UnixStream::connect(to_unix).expect("Unix connect");
start(diode, buffer_size)
start(diode, buffer_size, 2)
}
}

fn start<D>(mut diode: D, buffer_size: usize)
fn start<D>(mut diode: D, buffer_size: usize, i: u8)
where
D: Write,
{
Expand Down

0 comments on commit 5d77571

Please sign in to comment.