forked from libp2p/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gossipsub): remove control pool (#559)
* split ControlAction variants into its own structs which will help for the goal of prioritizing GRAFT and PRUNE messages over IWANT/IHAVE. * split control messages for different priorities * send GRAFT messages immediately when subscribing a topic, instead of doing it in the next heartbeat via control pool. * send PRUNE messages immediately when leaving a topic, instead of doing it in the next heartbeat via control pool. * send IWANT messages immediately when handling IHAVE tests are changed due to how count_control_messages work. Previously when counting messages they were consumed from the source: control_pool and the NetworkBehaviour events list, with the new channels, to read a message one has to consume it, that's why test numbers were changed. * send IHAVE messages immediately when emitting gossip * remove no longer used control_pool * clippy
- Loading branch information
Showing
4 changed files
with
373 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.