File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ use std::{
2727} ;
2828
2929use futures:: never:: Never ;
30- use p2p_types:: ip_or_socket_address:: IpOrSocketAddress ;
30+ use p2p_types:: { bannable_address :: BannableAddress , ip_or_socket_address:: IpOrSocketAddress } ;
3131use tokio:: sync:: mpsc;
3232
3333use chainstate:: ban_score:: BanScore ;
@@ -350,7 +350,7 @@ where
350350 }
351351 }
352352
353- fn ban ( & mut self , address : T :: BannableAddress ) {
353+ fn ban ( & mut self , address : BannableAddress ) {
354354 let to_disconnect = self
355355 . peers
356356 . values ( )
Original file line number Diff line number Diff line change @@ -405,16 +405,15 @@ fn ban_and_disconnect() {
405405 let p2p_config = Arc :: new ( test_p2p_config ( ) ) ;
406406 let ( cmd_tx, mut cmd_rx) = tokio:: sync:: mpsc:: unbounded_channel ( ) ;
407407 let ( _conn_tx, conn_rx) = tokio:: sync:: mpsc:: unbounded_channel ( ) ;
408- let ( _peer_tx, peer_rx) =
409- tokio:: sync:: mpsc:: unbounded_channel :: < PeerManagerEvent < TestNetworkingService > > ( ) ;
408+ let ( _peer_tx, peer_rx) = tokio:: sync:: mpsc:: unbounded_channel :: < PeerManagerEvent > ( ) ;
410409 let time_getter = P2pBasicTestTimeGetter :: new ( ) ;
411410 let connectivity_handle = ConnectivityHandle :: < TestNetworkingService , TcpTransportSocket > :: new (
412411 vec ! [ ] ,
413412 cmd_tx,
414413 conn_rx,
415414 ) ;
416415
417- let mut pm = PeerManager :: new (
416+ let mut pm = PeerManager :: < TestNetworkingService , _ > :: new (
418417 Arc :: clone ( & chain_config) ,
419418 Arc :: clone ( & p2p_config) ,
420419 connectivity_handle,
You can’t perform that action at this time.
0 commit comments