Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

chore: tidy peer management for join command #21

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

jacderida
Copy link
Contributor

The peers argument is no longer declared with an Option and the manual parsing of SAFE_PEERS is removed. If the user doesn't specify any peers using --peer or SAFE_PEERS, the get_peers_from_args function will return a particular type of error. In this case, we can just assume the user wants the nodes to join an existing local network.

The `peers` argument is no longer declared with an `Option` and the manual parsing of `SAFE_PEERS`
is removed. If the user doesn't specify any peers using `--peer` or `SAFE_PEERS`, the
`get_peers_from_args` function will return a particular type of error. In this case, we can just
assume the user wants the nodes to join an existing local network.
@jacderida jacderida force-pushed the remove-peers-arg-option branch from 3f2ecbb to 6b42af5 Compare January 16, 2024 15:35
@jacderida jacderida merged commit 81f2da1 into maidsafe:main Jan 16, 2024
13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants