-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iroh-net)!: improve dns behaviour by staggering requests (#2313)
## Description Improves dns behaviour by staggering concurrent queries. Other changes include: - Remove unnecessary trait bounds from `ResolverExt` functions. - Unify dns capabilities under `ResolverExt`. - Add helper fn `stagger_call` with a minimal test. - Add staggering versions of the `ResolverExt` functions. - Use staggered options and turn on tests ## Breaking Changes - `iroh_net::dns::node_info::lookup_by_domain` moved to `iroh_net::ResolverExt::lookup_by_domain` ## Notes & open questions Whether test are less prone to fail randomly is something I can't test locally (no windows) so I'm trusting ci here. ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented.
- Loading branch information
1 parent
6d1a6dd
commit d813089
Showing
7 changed files
with
269 additions
and
47 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
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
Oops, something went wrong.