Skip to content
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

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Conversation

dignifiedquire
Copy link
Contributor

@dignifiedquire dignifiedquire commented Jun 23, 2024

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

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.
  • All breaking changes documented.

@dignifiedquire dignifiedquire added this to the v0.19.0 milestone Jun 24, 2024
@@ -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>>(
Copy link
Contributor

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... 😁

iroh/src/node.rs Outdated Show resolved Hide resolved
@dignifiedquire dignifiedquire added this pull request to the merge queue Jun 24, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jun 24, 2024
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.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 24, 2024
@dignifiedquire dignifiedquire added this pull request to the merge queue Jun 26, 2024
Merged via the queue into main with commit d30ed19 Jun 26, 2024
24 of 25 checks passed
@dignifiedquire dignifiedquire deleted the feat-connect-addr branch November 28, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants