Skip to content

Add --peers flag to sync peers from JSON file to Consul on startup#145

Merged
anhthii merged 1 commit intomasterfrom
add-peer-file-flag
Mar 2, 2026
Merged

Add --peers flag to sync peers from JSON file to Consul on startup#145
anhthii merged 1 commit intomasterfrom
add-peer-file-flag

Conversation

@anhthii
Copy link
Contributor

@anhthii anhthii commented Mar 2, 2026

Introduces a --peers CLI flag that loads peer definitions from a JSON file and registers any new peers into Consul before the node starts. Existing peers are skipped. Also extracts PeersPrefix constant to avoid hardcoded strings.

Introduces a --peers CLI flag that loads peer definitions from a JSON file
and registers any new peers into Consul before the node starts. Existing
peers are skipped. Also extracts PeersPrefix constant to avoid hardcoded strings.
@anhthii anhthii merged commit 0a2d40c into master Mar 2, 2026
25 of 26 checks passed
@anhthii anhthii deleted the add-peer-file-flag branch March 2, 2026 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant