diff --git a/protocols/autonat/src/behaviour.rs b/protocols/autonat/src/behaviour.rs index 439543f8318d..f21774884408 100644 --- a/protocols/autonat/src/behaviour.rs +++ b/protocols/autonat/src/behaviour.rs @@ -199,7 +199,7 @@ pub struct Behaviour { // Connected peers with the observed address of each connection. // If the endpoint of a connection is relayed or not global (in case of Config::only_global_ips), // the observed address is `None`. - connected: HashMap>>, + pub connected: HashMap>>, // Used servers in recent outbound probes that are throttled through Config::throttle_server_period. throttled_servers: Vec<(PeerId, Instant)>, diff --git a/protocols/identify/src/behaviour.rs b/protocols/identify/src/behaviour.rs index f572b937d386..86115bda24cd 100644 --- a/protocols/identify/src/behaviour.rs +++ b/protocols/identify/src/behaviour.rs @@ -47,7 +47,7 @@ use std::{ pub struct Behaviour { config: Config, /// For each peer we're connected to, the observed address to send back to it. - connected: HashMap>, + pub connected: HashMap>, /// Pending events to be emitted when polled. events: VecDeque>, /// The addresses of all peers that we have discovered. diff --git a/protocols/request-response/src/lib.rs b/protocols/request-response/src/lib.rs index 7b1a80884430..3906f8449a5c 100644 --- a/protocols/request-response/src/lib.rs +++ b/protocols/request-response/src/lib.rs @@ -332,9 +332,9 @@ where VecDeque, RequestProtocol>>, /// The currently connected peers, their pending outbound and inbound responses and their known, /// reachable addresses, if any. - connected: HashMap>, + pub connected: HashMap>, /// Externally managed addresses via `add_address` and `remove_address`. - addresses: HashMap>, + pub addresses: HashMap>, /// Requests that have not yet been sent and are waiting for a connection /// to be established. pending_outbound_requests: HashMap; 10]>>,