mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 17:01:58 +00:00
Send on pending RPCs on established connection. (#1156)
This commit is contained in:
@@ -493,7 +493,7 @@ where
|
||||
}
|
||||
|
||||
fn inject_connected(&mut self, id: PeerId, endpoint: ConnectedPoint) {
|
||||
if let Some(pos) = self.pending_rpcs.iter().position(|(p, _)| p == &id) {
|
||||
while let Some(pos) = self.pending_rpcs.iter().position(|(p, _)| p == &id) {
|
||||
let (_, rpc) = self.pending_rpcs.remove(pos);
|
||||
self.queued_events.push(NetworkBehaviourAction::SendEvent {
|
||||
peer_id: id.clone(),
|
||||
|
Reference in New Issue
Block a user