reduce rpc sampling rate
This commit is contained in:
parent
88d343bcb8
commit
743b35be88
|
@ -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>) {
|
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());
|
let rpc = RpcClient::new(rpc_url.to_string());
|
||||||
loop {
|
loop {
|
||||||
tokio::time::sleep(Duration::from_millis(100)).await;
|
tokio::time::sleep(Duration::from_millis(800)).await;
|
||||||
let slot = rpc
|
let slot = rpc
|
||||||
.get_slot_with_commitment(CommitmentConfig::processed())
|
.get_slot_with_commitment(CommitmentConfig::processed())
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Reference in New Issue