bootstrap: Sleep in loop to get rpc peers (#27843)

This commit is contained in:
Brooks Prumo 2022-09-18 15:15:14 -04:00 committed by GitHub
parent a3d0dd78ec
commit baf31b0753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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(