refactor: remove current_sync_peer from network manager#511
refactor: remove current_sync_peer from network manager#511xdustinface wants to merge 2 commits intorefactor/peer-service-lookupfrom
current_sync_peer from network manager#511Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## refactor/peer-service-lookup #511 +/- ##
================================================================
+ Coverage 66.90% 66.97% +0.07%
================================================================
Files 313 313
Lines 64757 64777 +20
================================================================
+ Hits 43325 43385 +60
+ Misses 21432 21392 -40
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
- Add `peer_with_service()` and `peers_with_service()` on `PeerPool` to replace repeated "iterate peers, check service flag" loops in message routing. - Add unit tests - Generalize the match/log/error pattern for required-service peer selection in `send_to_single_peer` so new service requirements only need a single match arm.
bbaf01d to
36be3dd
Compare
Simplify peer selection in `send_to_single_peer` by removing the sticky sync peer tracking. Peers are now selected directly based on message type requirements and the round-robin counter.
|
This PR has merge conflicts with the base branch. Please rebase or merge the base branch into your branch to resolve them. |
f2fe73b to
d6f2108
Compare
36be3dd to
22e4161
Compare
|
This PR has merge conflicts with the base branch. Please rebase or merge the base branch into your branch to resolve them. |
22e4161 to
e5f3bc6
Compare
Simplify peer selection in
send_to_single_peerby removing the sticky sync peer tracking. Peers are now selected directly based on message type requirements and the round-robin counter.Based on:
PeerPoolhelpers #509