@@ -41,8 +41,8 @@ use libp2p_core::{
41
41
multiaddr:: Protocol :: Ip6 , ConnectedPoint , Multiaddr , PeerId ,
42
42
} ;
43
43
use libp2p_swarm:: {
44
- dial_opts:: { self , DialOpts } ,
45
- IntoConnectionHandler , NetworkBehaviour , NetworkBehaviourAction , NotifyHandler , PollParameters ,
44
+ dial_opts:: DialOpts , IntoConnectionHandler , NetworkBehaviour , NetworkBehaviourAction ,
45
+ NotifyHandler , PollParameters ,
46
46
} ;
47
47
use wasm_timer:: Instant ;
48
48
@@ -1143,9 +1143,7 @@ where
1143
1143
debug ! ( "Connecting to explicit peer {:?}" , peer_id) ;
1144
1144
let handler = self . new_handler ( ) ;
1145
1145
self . events . push_back ( NetworkBehaviourAction :: Dial {
1146
- opts : DialOpts :: peer_id ( * peer_id)
1147
- . condition ( dial_opts:: PeerCondition :: Disconnected )
1148
- . build ( ) ,
1146
+ opts : DialOpts :: peer_id ( * peer_id) . build ( ) ,
1149
1147
handler,
1150
1148
} ) ;
1151
1149
}
@@ -1644,9 +1642,7 @@ where
1644
1642
// dial peer
1645
1643
let handler = self . new_handler ( ) ;
1646
1644
self . events . push_back ( NetworkBehaviourAction :: Dial {
1647
- opts : DialOpts :: peer_id ( peer_id)
1648
- . condition ( dial_opts:: PeerCondition :: Disconnected )
1649
- . build ( ) ,
1645
+ opts : DialOpts :: peer_id ( peer_id) . build ( ) ,
1650
1646
handler,
1651
1647
} ) ;
1652
1648
}
0 commit comments