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

fix(iroh): handle rpc args in any position #1739

Merged
merged 6 commits into from
Oct 30, 2023
Merged

fix(iroh): handle rpc args in any position #1739

merged 6 commits into from
Oct 30, 2023

Conversation

dignifiedquire
Copy link
Contributor

It is now possible to do any of these

> iroh start --rpc-port 1234
> iroh --rpc-port 1234 start
> iroh console --rpc-port 1234
> iroh --rpc-port 1234 console

Closes #1639

@dignifiedquire dignifiedquire self-assigned this Oct 26, 2023
@dignifiedquire dignifiedquire added this to the v0.9.0 milestone Oct 26, 2023
@@ -28,7 +28,7 @@ use super::{BlobAddOptions, MAX_RPC_CONNECTIONS, MAX_RPC_STREAMS};
#[derive(Debug)]
pub struct StartOptions {
pub addr: SocketAddr,
pub rpc_port: RpcPort,
pub rpc_port: u16,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we can't start with rpc port disabled anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I have removed the ability, yes. Lets work on getting the portless version for rpc supported soon to improve on this.

@Arqu
Copy link
Collaborator

Arqu commented Oct 30, 2023

Something doesn't sit right, netsim works with this though it doesn't pass in --rpc-port at start.

Copy link
Collaborator

@Arqu Arqu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than it magically working when it maybe shouldn't, LGTM.

@dignifiedquire dignifiedquire added this pull request to the merge queue Oct 30, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 30, 2023
@divagant-martian divagant-martian added this pull request to the merge queue Oct 30, 2023
@dignifiedquire dignifiedquire removed this pull request from the merge queue due to a manual request Oct 30, 2023
@dignifiedquire dignifiedquire added this pull request to the merge queue Oct 30, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Oct 30, 2023
@dignifiedquire dignifiedquire added this pull request to the merge queue Oct 30, 2023
Merged via the queue into main with commit 0ca61ad Oct 30, 2023
15 checks passed
@divagant-martian divagant-martian deleted the fix-rpc-arg branch October 30, 2023 21:10
divagant-martian pushed a commit to divagant-martian/iroh that referenced this pull request Oct 31, 2023
It is now possible to do any of these 

```
> iroh start --rpc-port 1234
> iroh --rpc-port 1234 start
> iroh console --rpc-port 1234
> iroh --rpc-port 1234 console
```

Closes n0-computer#1639
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.

cli: rpc-port argument is confusing and partially broken
3 participants