Skip to content

Commit

Permalink
Use send() instead of do_send()
Browse files Browse the repository at this point in the history
Signed-off-by: Randy Barlow <randy.barlow@deepgram.com>
  • Loading branch information
Randy Barlow committed Feb 8, 2021
1 parent 09bceb4 commit 96497a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions websocket/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ fn main() {

// start console loop
std::thread::sleep(std::time::Duration::from_millis(2000));
thread::spawn(move || loop {
loop {
let cmd = ["test"; 8192];
addr.do_send(ClientCommand(cmd.join(" ")));
});
if let Err(error) = addr.send(ClientCommand(cmd.join(" "))).await {
println!("Error: {}", error);
}
}
});
sys.run().unwrap();
}
Expand Down

0 comments on commit 96497a0

Please sign in to comment.