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

@ -264,7 +264,7 @@ fn main() {
let gossip_addr = node.info.gossip;
let mut fullnode = Fullnode::new(
node,
keypair.clone(),
&keypair,
ledger_path,
Arc::new(RwLock::new(leader_scheduler)),
vote_signer,