poll_gossip_for_leader() code cleanup

This commit is contained in:
Michael Vines
2019-03-06 15:41:21 -08:00
parent b083e4db48
commit 679a718cbf
2 changed files with 15 additions and 27 deletions

View File

@ -117,8 +117,7 @@ fn make_spy_node(
) -> (GossipService, Arc<RwLock<ClusterInfo>>) {
let keypair = Arc::new(Keypair::new());
let (node, gossip_socket) = ClusterInfo::spy_node(&keypair.pubkey());
let mut cluster_info = ClusterInfo::new(node, keypair);
let mut cluster_info = ClusterInfo::new_with_invalid_keypair(node);
cluster_info.insert_info(entry_point.clone());
let cluster_info = Arc::new(RwLock::new(cluster_info));