Fix clippy warning

Always pass Arcs by reference. Then you'll only need to clone()
to cross thread boundaries.
This commit is contained in:
Greg Fitzgerald
2019-01-30 20:51:50 -07:00
parent 11f1c00ca7
commit 609e915169
5 changed files with 35 additions and 35 deletions

View File

@@ -455,7 +455,7 @@ pub fn new_fullnode(ledger_name: &'static str) -> (Fullnode, NodeInfo, Keypair,
let vote_signer = VoteSignerProxy::new_local(&vote_account_keypair);
let node = Fullnode::new(
node,
node_keypair,
&node_keypair,
&ledger_path,
Arc::new(RwLock::new(leader_scheduler)),
vote_signer,