apollo_network: wire DiallingBehaviour into Discovery with RequestDial event#13217
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
guy-starkware
left a comment
There was a problem hiding this comment.
@guy-starkware reviewed 3 files and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on ShahakShama and sirandreww-starkware).
f63f46d to
7dc0560
Compare
13aac61 to
25d474d
Compare
7dc0560 to
e1e0d81
Compare
25d474d to
3ce8c4d
Compare
e1e0d81 to
d2ba146
Compare
3ce8c4d to
af4bcfb
Compare
af4bcfb to
2ec06fb
Compare
sirandreww-starkware
left a comment
There was a problem hiding this comment.
@sirandreww-starkware made 1 comment.
Reviewable status: 1 of 3 files reviewed, 1 unresolved discussion (waiting on guy-starkware and ShahakShama).
ShahakShama
left a comment
There was a problem hiding this comment.
@ShahakShama reviewed 2 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on guy-starkware and sirandreww-starkware).
a discussion (no related file):
Throughout the enitre PR: Dialling -> Dialing
We use American English (As long as libp2p allows us 😅 )
crates/apollo_network/src/discovery/mod.rs line 100 at r2 (raw file):
/// Manages ongoing Kademlia queries for peer discovery. kad_requesting: KadRequestingBehaviour, /// Manages dialling to peers with exponential backoff.
I wouldn't state the exponential backoff here. How about // Manages dialing to peers with retries
d2ba146 to
d47f3ac
Compare
2ec06fb to
734c3f6
Compare
sirandreww-starkware
left a comment
There was a problem hiding this comment.
@sirandreww-starkware made 2 comments.
Reviewable status: 0 of 5 files reviewed, 2 unresolved discussions (waiting on guy-starkware and ShahakShama).
a discussion (no related file):
Previously, ShahakShama wrote…
Throughout the enitre PR: Dialling -> Dialing
We use American English (As long as libp2p allows us 😅 )
Done
crates/apollo_network/src/discovery/mod.rs line 100 at r2 (raw file):
Previously, ShahakShama wrote…
I wouldn't state the exponential backoff here. How about // Manages dialing to peers with retries
Done.
ShahakShama
left a comment
There was a problem hiding this comment.
@ShahakShama partially reviewed 5 files and all commit messages, made 1 comment, and resolved 2 discussions.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on guy-starkware).
734c3f6 to
01d86d9
Compare
d47f3ac to
13382ca
Compare
01d86d9 to
7f887ac
Compare
Merge activity
|
7f887ac to
2492cef
Compare
2492cef to
8120ff7
Compare


Note
Medium Risk
Adds a new dialing sub-behaviour to discovery and introduces a new cross-behaviour
RequestDialevent, which can affect peer connection flow and retry behaviour. Risk is moderate because it changes swarm behaviour composition and event routing but is scoped to discovery/dial logic.Overview
Discovery now includes an explicit peer-dialing behaviour with retry support, and routes dial requests through the discovery event bridge.
This renames the
diallingbehaviour/module todialing, exportsDialingBehaviour, addsToOtherBehaviourEvent::RequestDial, and updatesBehaviour::newandon_other_behaviour_eventto instantiate the dialer and invokedialing.request_dialwhen the new event is received.Written by Cursor Bugbot for commit 8120ff7. This will update automatically on new commits. Configure here.