From 4b1d338e04db1afaadb00fdb2844a64943dd9911 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 1 May 2020 10:32:46 -0700 Subject: [PATCH] Add delay to keep RPC traffic down on error --- stake-monitor/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/stake-monitor/src/lib.rs b/stake-monitor/src/lib.rs index a932ba39a5..4eea6067f6 100644 --- a/stake-monitor/src/lib.rs +++ b/stake-monitor/src/lib.rs @@ -319,6 +319,7 @@ pub fn process_slots(rpc_client: &RpcClient, accounts_info: &mut AccountsInfo, b String ) ); + sleep(Duration::from_secs(1)); } } }