-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove deprecated endpoint::ConnectionInfo::last_alive_relay
#2640
Labels
Comments
4 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 17, 2024
## Description Moves some functions and types to use `remote` to describe the information we know about a node, instead of connections. This, based on the fact that iroh-net does not itself handle connections, making the wording misleading at best. ## Breaking Changes ### iroh - `client::node::Client::connection_info` -> `client::node::Client::remote_info` - `client::node::Client::connections` -> `client::node::Client::remote_infos_iter` ### iroh-net - `endpoint::ConnectionInfo` -> `endpoint::RemoteInfo` - `endpoint::ConnectionInfo::id` is removed since it's internal information. - `endpoint::ConnectionInfo::last_alive_relay` is deprecated. Use `.relay_url.last_alive` - `endpoint::Endpoint::connection_info` -> `endpoint::Endpoint::remote_info` - `endpoint::Endpoint::connection_infos` -> `endpoint::Endpoint::remote_infos_iter` ### iroh-cli (bin) - `node connection-info` -> `node remote-info` - `node connections` -> `node remote-list` ## Notes & open questions 1. We decided to also move many of the (currently) node commands that come directly from iroh-net to a new `net` top level api. Doing so we should aim as well to move the cli to the more gracious `remote <node-id>` and `remote list`. In summary: - we have `iroh node remote <node-id>` and we want `iroh net remote <remote-id>` - we have `iroh node remote-list` and we want `iroh net remote list` Issue #2639 is created for this 2. This adds a deprecation that needs to be removed later. Issue #2640 is created for this. ## 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: Diva M <divma@protonmail.com> Co-authored-by: Kasey <kasey@n0.computer>
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
deprecated for
0.23.0
, should be removed in0.24.0
the earliestThe text was updated successfully, but these errors were encountered: