Skip to content

Commit 0cd1a7e

Browse files
authored
Merge pull request #3851 from driftluo/rc/v0.108.x
[Backport] omission modification
2 parents 0c4c4fb + 98996a8 commit 0cd1a7e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

network/src/network.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -717,13 +717,11 @@ impl<T: ExitHandler> ServiceHandle for EventHandler<T> {
717717
"registry peer failed {:?} disconnect it, {} => {}",
718718
err, session_context.id, session_context.address,
719719
);
720-
if let Err(err) = async_disconnect_with_message(
721-
context.control(),
720+
if let Err(err) = disconnect_with_message(
721+
&control,
722722
session_context.id,
723723
"reject peer connection",
724-
)
725-
.await
726-
{
724+
) {
727725
debug!(
728726
"Disconnect failed {:?}, error: {:?}",
729727
session_context.id, err

0 commit comments

Comments
 (0)