Skip to content

Commit a60ad06

Browse files
committed
add sleep to keep remote exit later
Signed-off-by: Xintao <[email protected]>
1 parent f28da66 commit a60ad06

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ impl ChannelBuilder {
391391
}
392392

393393
/// Build `ChannelArgs` from the current configuration.
394-
#[allow(clippy::identity_conversion)]
394+
#[allow(clippy::useless_conversion)]
395395
pub fn build_args(&self) -> ChannelArgs {
396396
let args = unsafe { grpc_sys::grpcwrap_channel_args_create(self.options.len()) };
397397
for (i, (k, v)) in self.options.iter().enumerate() {

tests-and-examples/tests/cases/stream.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ impl RouteGuide for RouteGuideService {
4949
break;
5050
}
5151
}
52+
// Sleep a while to avoid the possibility that the client will receive
53+
// remotestopped error.
54+
std::thread::sleep(std::time::Duration::from_millis(100));
5255
resp.success(summary).await?;
5356
Ok(())
5457
}

0 commit comments

Comments
 (0)