@@ -41,29 +41,29 @@ pub use self::{
4141 runtime_id:: { PublicRuntimeId , SecretRuntimeId } ,
4242 stats:: Stats ,
4343} ;
44- use choke:: Choker ;
45- use constants:: REQUEST_TIMEOUT ;
46- use event:: ProtocolVersions ;
4744pub use net:: stun:: NatBehavior ;
48- use request_tracker:: RequestTracker ;
4945
5046use self :: {
47+ choke:: Choker ,
5148 connection:: { ConnectionPermit , ConnectionSet , ReserveResult } ,
5249 connection_monitor:: ConnectionMonitor ,
50+ constants:: REQUEST_TIMEOUT ,
5351 dht_discovery:: DhtDiscovery ,
52+ event:: ProtocolVersions ,
5453 gateway:: { Connectivity , Gateway , StackAddresses } ,
5554 local_discovery:: LocalDiscovery ,
5655 message_broker:: MessageBroker ,
5756 peer_addr:: PeerPort ,
5857 peer_exchange:: { PexDiscovery , PexRepository } ,
58+ peer_source:: ConnectionDirection ,
5959 protocol:: { Version , MAGIC , VERSION } ,
60+ request_tracker:: RequestTracker ,
6061 seen_peers:: { SeenPeer , SeenPeers } ,
6162 stats:: { ByteCounters , StatsTracker } ,
6263 stun:: StunClients ,
6364} ;
6465use crate :: {
6566 collections:: HashSet ,
66- network:: connection:: ConnectionDirection ,
6767 protocol:: RepositoryId ,
6868 repository:: { RepositoryHandle , Vault } ,
6969} ;
@@ -831,7 +831,7 @@ impl Inner {
831831 & connection,
832832 VERSION ,
833833 & self . this_runtime_id ,
834- ConnectionDirection :: from_source ( permit. source ( ) ) ,
834+ permit. source ( ) . direction ( ) ,
835835 )
836836 . await ;
837837
@@ -883,8 +883,11 @@ impl Inner {
883883 that_runtime_id,
884884 connection,
885885 pex_peer,
886- self . peers_monitor
887- . make_child ( format ! ( "{:?}" , that_runtime_id. as_public_key( ) ) ) ,
886+ self . peers_monitor . make_child ( format ! (
887+ "{} {}" ,
888+ permit. source( ) . direction( ) . glyph( ) ,
889+ permit. addr( )
890+ ) ) ,
888891 self . stats_tracker . bytes . clone ( ) ,
889892 permit. byte_counters ( ) ,
890893 )
0 commit comments