Skip to content

Commit

Permalink
increases timeout duration for gossip discover
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed May 22, 2021
1 parent a7870cd commit d649637
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/src/gossip_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ pub fn discover_cluster(
entrypoint: &SocketAddr,
num_nodes: usize,
) -> std::io::Result<Vec<ContactInfo>> {
discover(
None,
let (_all_peers, validators) = discover(
None, // keypair
Some(entrypoint),
Some(num_nodes),
Some(30),
None,
None,
None,
0,
)
.map(|(_all_peers, validators)| validators)
Some(120), // timeout
None, // find_node_by_pubkey
None, // find_node_by_gossip_addr
None, // my_gossip_addr
0, // my_shred_version
)?;
Ok(validators)
}

pub fn discover(
Expand Down

0 comments on commit d649637

Please sign in to comment.