Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit e41dd76

Browse files
authored
Merge pull request #2389 from Cargill/agunde406-backport-min-peer-1-3
Backport 1-3: Rename args for consistency and respect min peers value
2 parents 32783eb + 7d25cde commit e41dd76

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

validator/src/server/cli.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ pub fn wrap_in_pydict(py: Python, matches: &ArgMatches) -> PyResult<PyDict> {
4444
py,
4545
"minimum_peer_connectivity",
4646
matches
47-
.value_of("minimum-peer-connectivity")
47+
.value_of("minimum_peer_connectivity")
4848
.and_then(|s| s.parse::<u32>().ok()),
4949
)?;
50-
pydict.set_item(py, "opentsdb_db", matches.value_of("opentsdb-db"))?;
51-
pydict.set_item(py, "opentsdb_url", matches.value_of("opentsdb-url"))?;
50+
pydict.set_item(py, "opentsdb_db", matches.value_of("opentsdb_db"))?;
51+
pydict.set_item(py, "opentsdb_url", matches.value_of("opentsdb_url"))?;
5252
pydict.set_item(py, "peering", matches.value_of("peering"))?;
5353
pydict.set_item(py, "peers", parse_comma_separated_args("peers", matches))?;
5454
pydict.set_item(py, "roles", parse_roles(matches, py))?;
@@ -169,7 +169,7 @@ pub fn parse_args<'a>() -> ArgMatches<'a> {
169169
),
170170
)
171171
.arg(
172-
Arg::with_name("opentsdb-url")
172+
Arg::with_name("opentsdb_url")
173173
.long("opentsdb-url")
174174
.takes_value(true)
175175
.help(
@@ -178,7 +178,7 @@ pub fn parse_args<'a>() -> ArgMatches<'a> {
178178
),
179179
)
180180
.arg(
181-
Arg::with_name("opentsdb-db")
181+
Arg::with_name("opentsdb_db")
182182
.long("opentsdb-db")
183183
.takes_value(true)
184184
.help("specify name of database used for storing metrics"),

0 commit comments

Comments
 (0)