reduce rpc sampling rate

This commit is contained in:
GroovieGermanikus 2024-07-25 14:56:48 +02:00
parent 88d343bcb8
commit 743b35be88
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ async fn main() {
async fn rpc_getslot_source(rpc_url: Url, slot_source: SlotSource, mpsc_downstream: tokio::sync::mpsc::Sender<SlotDatapoint>) {
let rpc = RpcClient::new(rpc_url.to_string());
loop {
tokio::time::sleep(Duration::from_millis(100)).await;
tokio::time::sleep(Duration::from_millis(800)).await;
let slot = rpc
.get_slot_with_commitment(CommitmentConfig::processed())
.await