-
Notifications
You must be signed in to change notification settings - Fork 177
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): Update discovery and dialing docs, signatures (#2472)
## Description This updates the documentationfor the dialing and discovery modules. It also fixes up some signatures to be more consistent with the rest of iroh-net: - NodeId is used to identify an iroh-net node that is communicated with. PublicKey is only used in contexts where encryption/decryption happens - NodeId is Copy and we pass it by value normally. Not by reference. Some more changes: - DialFuture is entirely unused, probably left over from a refactor. Removed. - Use pub(super) explicitly, helps clarity of intention as well as dead-code detection. ## Breaking Changes The following APIs now take NodeId by value rather than by reference: - iroh_blobs::downloader::Dialer::is_pending - iroh_net::dialer::Dialer::abort_dial - iroh_net::dialer::Dialer::is_pending - iroh_net::Endpoint::connect_by_node_id Other changes: - iroh_blobs::downloader::ProviderMap::get_candidates yields NodeId rather than &NodeId ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## 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: Philipp Krüger <[email protected]> Co-authored-by: Friedel Ziegelmayer <[email protected]>
- Loading branch information
1 parent
3866b6f
commit e53714c
Showing
7 changed files
with
116 additions
and
67 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
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.