-
Notifications
You must be signed in to change notification settings - Fork 171
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
feat(iroh)!: expand ability to connect to RPC #2398
Conversation
@@ -256,7 +260,11 @@ where | |||
} | |||
|
|||
/// Configure rpc endpoint, changing the type of the builder to the new endpoint type. | |||
pub fn rpc_endpoint<E2: ServiceEndpoint<RpcService>>(self, value: E2) -> Builder<D, E2> { | |||
pub fn rpc_endpoint<E2: ServiceEndpoint<RpcService>>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR probably, but I guess we don't need this whole type parameter anymore on the builder due to having the ability to box the endpoint.
So far we don't make use of this on the node side but just on the client side, but maybe something to do for the next release...
We need to get rid of type parameters to make room for new type parameters... 😁
Allows for easier connectivity of RPC, when not having access to the folder, e.g. in a docker setup ## Breaking Changes - renamed `iroh::client::Iroh::connect` -> `iroh::client::Iroh::connect_path` - added `iroh::client::Iroh::connect_addr` - added `rpc_port` field to `iroh::client::NodeStatus` ## Notes & open questions There might be nicer ways, but this works for now ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - [x] Tests if relevant. - [x] All breaking changes documented.
Allows for easier connectivity of RPC, when not having access to the folder, e.g. in a docker setup
Breaking Changes
iroh::client::Iroh::connect
->iroh::client::Iroh::connect_path
iroh::client::Iroh::connect_addr
rpc_port
field toiroh::client::NodeStatus
Notes & open questions
There might be nicer ways, but this works for now
Change checklist