From 9ad5f3c65b9a4ace4a891092cfc8a260bd31f9df Mon Sep 17 00:00:00 2001 From: anatoly yakovenko Date: Wed, 23 May 2018 14:48:00 -0700 Subject: [PATCH] fix option (#246) --- src/bin/testnode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/testnode.rs b/src/bin/testnode.rs index 179507f4b3..dcf52c82a3 100644 --- a/src/bin/testnode.rs +++ b/src/bin/testnode.rs @@ -129,9 +129,9 @@ fn main() { // we need all the receiving sockets to be bound within the expected // port range that we open on aws let mut repl_data = make_repl_data(&bind_addr); - let threads = if matches.opt_present("r") { + let threads = if matches.opt_present("v") { eprintln!("starting validator... {}", repl_data.requests_addr); - let path = matches.opt_str("r").unwrap(); + let path = matches.opt_str("v").unwrap(); let file = File::open(path).expect("file"); let leader = serde_json::from_reader(file).expect("parse"); let s = Server::new_validator(