File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ impl Actor {
384
384
Some ( res) = self . conn_manager. next( ) => {
385
385
trace!( ?i, "tick: conn_manager" ) ;
386
386
match res {
387
- Ok ( conn) => self . handle_new_connection( conn) . await ,
387
+ Ok ( conn) => self . handle_new_connection( conn) ,
388
388
Err ( err) => {
389
389
self . handle_in_event( InEvent :: PeerDisconnected ( err. node_id) , Instant :: now( ) ) . await ?;
390
390
}
@@ -545,7 +545,7 @@ impl Actor {
545
545
Ok ( ( ) )
546
546
}
547
547
548
- async fn handle_new_connection ( & mut self , new_conn : ConnInfo ) {
548
+ fn handle_new_connection ( & mut self , new_conn : ConnInfo ) {
549
549
let ConnInfo {
550
550
conn,
551
551
node_id,
Original file line number Diff line number Diff line change @@ -440,9 +440,6 @@ mod tests {
440
440
}
441
441
442
442
tasks. abort_all ( ) ;
443
- while let Some ( r) = tasks. join_next ( ) . await {
444
- assert ! ( r. unwrap_err( ) . is_cancelled( ) ) ;
445
- }
446
443
447
444
Ok ( ( ) )
448
445
}
You can’t perform that action at this time.
0 commit comments