fix option (#246)

This commit is contained in:
anatoly yakovenko 2018-05-23 14:48:00 -07:00 committed by GitHub
parent 579de64d49
commit 9ad5f3c65b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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(