-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iroh-net): use
try_send
rather than send
so we dont block the…
… local swarm discovery service (#2794) ## Description Using `subscriber.send().await` could block the entire discovery service if one of the subscribers polls too slow. Change to `try_send` that will drop the discovery item from that stream if it is closed. ## Notes & open questions Added a line in the documentation to mention that if you do not poll enough, you may miss messages. ## 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. --------- Co-authored-by: Diva M <divma@protonmail.com>
- Loading branch information
1 parent
c349c43
commit 2d04306
Showing
2 changed files
with
19 additions
and
5 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
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