diff --git a/bin/darkfid2/src/main.rs b/bin/darkfid2/src/main.rs index 797d33b6e..7debf10e1 100644 --- a/bin/darkfid2/src/main.rs +++ b/bin/darkfid2/src/main.rs @@ -1,4 +1,4 @@ -use std::{net::SocketAddr, str::FromStr}; +use std::str::FromStr; use async_executor::Executor; use async_std::sync::{Arc, Mutex}; @@ -86,11 +86,11 @@ struct Args { #[structopt(long)] /// P2P accept address for the consensus protocol - consensus_p2p_accept: Option, + consensus_p2p_accept: Option, #[structopt(long)] /// P2P external address for the consensus protocol - consensus_p2p_external: Option, + consensus_p2p_external: Option, #[structopt(long, default_value = "8")] /// Connection slots for the consensus protocol @@ -98,19 +98,19 @@ struct Args { #[structopt(long)] /// Connect to peer for the consensus protocol (repeatable flag) - consensus_p2p_peer: Vec, + consensus_p2p_peer: Vec, #[structopt(long)] /// Connect to seed for the consensus protocol (repeatable flag) - consensus_p2p_seed: Vec, + consensus_p2p_seed: Vec, #[structopt(long)] /// P2P accept address for the syncing protocol - sync_p2p_accept: Option, + sync_p2p_accept: Option, #[structopt(long)] /// P2P external address for the syncing protocol - sync_p2p_external: Option, + sync_p2p_external: Option, #[structopt(long, default_value = "8")] /// Connection slots for the syncing protocol @@ -118,11 +118,11 @@ struct Args { #[structopt(long)] /// Connect to peer for the syncing protocol (repeatable flag) - sync_p2p_peer: Vec, + sync_p2p_peer: Vec, #[structopt(long)] /// Connect to seed for the syncing protocol (repeatable flag) - sync_p2p_seed: Vec, + sync_p2p_seed: Vec, #[structopt(long)] /// Whitelisted cashier address (repeatable flag) diff --git a/bin/faucetd/src/main.rs b/bin/faucetd/src/main.rs index 9eb8a1ed3..d188faf4a 100644 --- a/bin/faucetd/src/main.rs +++ b/bin/faucetd/src/main.rs @@ -1,4 +1,4 @@ -use std::{collections::HashMap, net::SocketAddr, str::FromStr}; +use std::{collections::HashMap, str::FromStr}; use async_executor::Executor; use async_std::sync::{Arc, Mutex}; @@ -82,11 +82,11 @@ struct Args { #[structopt(long)] /// P2P accept address for the syncing protocol - sync_p2p_accept: Option, + sync_p2p_accept: Option, #[structopt(long)] /// P2P external address for the syncing protocol - sync_p2p_external: Option, + sync_p2p_external: Option, #[structopt(long, default_value = "8")] /// Connection slots for the syncing protocol @@ -94,11 +94,11 @@ struct Args { #[structopt(long)] /// Connect to seed for the syncing protocol (repeatable flag) - sync_p2p_seed: Vec, + sync_p2p_seed: Vec, #[structopt(long)] /// Connect to peer for the syncing protocol (repeatable flag) - sync_p2p_peer: Vec, + sync_p2p_peer: Vec, #[structopt(long)] /// Whitelisted cashier address (repeatable flag) diff --git a/bin/tau/taud/src/main.rs b/bin/tau/taud/src/main.rs index 2bb0050f1..41e77e649 100644 --- a/bin/tau/taud/src/main.rs +++ b/bin/tau/taud/src/main.rs @@ -147,7 +147,7 @@ async fn realmain(settings: Args, executor: Arc>) -> Result<()> { //Raft // let datastore_raft = datastore_path.join("tau.db"); - let mut raft = Raft::::new(net_settings.inbound, datastore_raft)?; + let mut raft = Raft::::new(net_settings.inbound.clone(), datastore_raft)?; let raft_sender = raft.get_broadcast(); let commits = raft.get_commits();