Fix typo (#1308)
This commit is contained in:
@@ -76,9 +76,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
println!("\r\nBidirectional stream echo:");
|
println!("\r\nBidirectional stream echo:");
|
||||||
bidirectional_streaming_echo(&mut client, 17).await;
|
bidirectional_streaming_echo(&mut client, 17).await;
|
||||||
|
|
||||||
// Echo stream that sends up to `usize::MAX` requets. One request each 2s.
|
// Echo stream that sends up to `usize::MAX` requests. One request each 2s.
|
||||||
// Exiting client with CTRL+C demonstrate how to distinguish broken pipe from
|
// Exiting client with CTRL+C demonstrate how to distinguish broken pipe from
|
||||||
//graceful client disconnection (above example) on the server side.
|
// graceful client disconnection (above example) on the server side.
|
||||||
println!("\r\nBidirectional stream echo (kill client with CTLR+C):");
|
println!("\r\nBidirectional stream echo (kill client with CTLR+C):");
|
||||||
bidirectional_streaming_echo_throttle(&mut client, Duration::from_secs(2)).await;
|
bidirectional_streaming_echo_throttle(&mut client, Duration::from_secs(2)).await;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user