You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(iroh-gossip): clarify docs and semantics of gossip joined event (#2597)
## Description
Improves documentation around the `GossipEvent::Joined` event: It is
only emitted once at the beginning of the stream, and the event will not
be emitted when awaiting `GossipReceiver::joined`.
Also makes sure that the event is actually only emitted once per intent
(it potentially could have been emitted multiple times before if the
neighbor count first got down to 0 and then up again for `GossipTopics`
subscribing inbetween).
## Breaking Changes
<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->
## Notes & open questions
Inspired by the discussion in
chatmail/core#5860
## Change checklist
- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [x] All breaking changes documented.
Co-authored-by: Friedel Ziegelmayer <[email protected]>
0 commit comments