Skip to content
Commit 28d55d2d authored by Aaro Altonen's avatar Aaro Altonen Committed by GitHub
Browse files

Keep track of the pending response for each peer individually (#13941)



* Keep track of the pending response for each peer individually

When peer disconnects or the syncing is restarted, remove the pending
response so syncing won't start sending duplicate requests/receive stale
responses from disconnected peers.

Before this commit pending responses where stored in `FuturesUnordered`
which made it hard to keep track of pending responses for each individual
peer.

* Update client/network/sync/src/lib.rs

Co-authored-by: default avatarBastian Köcher <[email protected]>

* ".git/.scripts/commands/fmt/fmt.sh"

* Apply suggestions from code review

Co-authored-by: default avatarDmitry Markin <[email protected]>
Co-authored-by: default avatarSebastian Kunert <[email protected]>

* Update client/network/sync/src/lib.rs

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: command-bot <>
Co-authored-by: default avatarDmitry Markin <[email protected]>
Co-authored-by: default avatarSebastian Kunert <[email protected]>
parent 7a1fc72a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment