From 831b320ed47a1c202646fd25e879a0ad61cd374d Mon Sep 17 00:00:00 2001 From: Runji Wang Date: Fri, 21 Jun 2024 12:34:59 +0800 Subject: [PATCH] Update madsim-tonic/src/client.rs --- madsim-tonic/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/madsim-tonic/src/client.rs b/madsim-tonic/src/client.rs index 22aa157..dda3b74 100644 --- a/madsim-tonic/src/client.rs +++ b/madsim-tonic/src/client.rs @@ -183,7 +183,7 @@ impl Grpc { // send requests pin_mut!(stream); while let Some(item) = stream.next().await { - /// allows the server to prematurely close the stream + // allows the server to prematurely close the stream if tx.send(Box::new(item)).await.is_err() { debug!("send stream unexpectedly closed"); break;