Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
bootstrap: Sleep in loop to get rpc peers (#27843)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Sep 18, 2022
1 parent a3d0dd7 commit baf31b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validator/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,8 @@ fn get_rpc_nodes(
let mut newer_cluster_snapshot_timeout = None;
let mut retry_reason = None;
loop {
// Give gossip some time to populate and not spin on grabbing the crds lock
std::thread::sleep(Duration::from_secs(1));
info!("\n{}", cluster_info.rpc_info_trace());

let rpc_peers = get_rpc_peers(
Expand Down

0 comments on commit baf31b0

Please sign in to comment.