poll_gossip_for_leader: simplify timeout arg

This commit is contained in:
Michael Vines
2019-03-06 18:53:59 -08:00
parent 8bc7d5a172
commit f83a64d17f
3 changed files with 9 additions and 12 deletions

View File

@@ -63,7 +63,8 @@ fn test_replicator_startup_basic() {
debug!(
"leader: {:?}",
solana::thin_client::poll_gossip_for_leader(leader_info.gossip, Some(5)).unwrap()
solana::thin_client::poll_gossip_for_leader(leader_info.gossip, Duration::from_secs(5))
.unwrap()
);
let validator_keypair = Arc::new(Keypair::new());