-
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.
docs(iroh-net): Improve pkarr discovery docs (#2722)
## Description This tries to improve the pkarr discovery docs by trying to describe enough about how it works that users do not need to go looking elsewhere. ## Breaking Changes none ## Notes & open questions There are so many code overlaps and naming inconsistencies here. But this was part of docs friday so I'm just documenting things for now. - Discovery mechanisms are not named particularly consistent: - `PkarrPublisher` is probably a `PkarrRelayPublisher` - `PkarrResolver` is also a `PkarrRelayResolver` - `DnsDiscovery` only does resolving -> `DnsResolver` - `DhtDiscovery` can also use relay server, but at least it does both publish and resolve - The `DhtDiscovery` is pretty generic, it can probably be made to do both replace `PkarrResolver` and `PkarrPublisher`, maybe with custom constructors. ## 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.~~ - ~~[ ] All breaking changes documented.~~ --------- Co-authored-by: Franz Heinzmann <[email protected]>
- Loading branch information
Showing
3 changed files
with
168 additions
and
61 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
Oops, something went wrong.