File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
hyperactor/src/channel/net Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -576,6 +576,8 @@ async fn run<M: RemoteMessage>(
576576 // TODO(T233029051): Return reason through return_channel too.
577577 reason : _,
578578 } => {
579+ // Close the channel to prevent any further messages from being sent.
580+ receiver. close ( ) ;
579581 // Return in order from oldest to newest, messages
580582 // either not acknowledged or not sent.
581583 unacked
@@ -584,9 +586,7 @@ async fn run<M: RemoteMessage>(
584586 . chain ( outbox. deque . drain ( ..) )
585587 . for_each ( |queued| queued. try_return ( ) ) ;
586588 while let Ok ( ( msg, return_channel, _) ) = receiver. try_recv ( ) {
587- if let Err ( m) = return_channel. send ( SendError ( ChannelError :: Closed , msg) ) {
588- tracing:: warn!( "failed to deliver SendError: {}" , m) ;
589- }
589+ let _ = return_channel. send ( SendError ( ChannelError :: Closed , msg) ) ;
590590 }
591591 }
592592 _ => ( ) ,
You can’t perform that action at this time.
0 commit comments