mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
bin/tau: clean up
This commit is contained in:
@@ -49,7 +49,7 @@ async fn start(settings: Settings, executor: Arc<Executor<'_>>) -> TaudResult<()
|
||||
let raft_sender = raft.get_broadcast();
|
||||
let commits = raft.get_commits();
|
||||
let initial_sync_commits = raft.get_commits().clone();
|
||||
let initial_sync_raft_sender = raft.get_broadcast().clone();
|
||||
let initial_sync_raft_sender = raft_sender.clone();
|
||||
|
||||
//
|
||||
// RPC
|
||||
|
||||
@@ -95,8 +95,11 @@ impl Settings {
|
||||
args.accept
|
||||
};
|
||||
|
||||
let outbound_connections =
|
||||
if args.slots == 0 { config.outbound_connections.unwrap_or(0) } else { args.slots };
|
||||
let outbound_connections = if args.slots == 0 {
|
||||
config.outbound_connections.unwrap_or_default()
|
||||
} else {
|
||||
args.slots
|
||||
};
|
||||
|
||||
let connect = args.connect;
|
||||
|
||||
@@ -143,7 +146,7 @@ pub struct CliTaud {
|
||||
#[clap(short, long)]
|
||||
pub connect: Vec<SocketAddr>,
|
||||
/// Raft Connection slots
|
||||
#[clap(long, default_value_t = 0)]
|
||||
#[clap(long, default_value = "0")]
|
||||
pub slots: u32,
|
||||
/// Increase verbosity
|
||||
#[clap(short, parse(from_occurrences))]
|
||||
|
||||
Reference in New Issue
Block a user