send the analytics only once every hours

This commit is contained in:
Tamo 2021-10-26 13:24:53 +02:00 committed by marin postma
parent 01737ef847
commit 9a62ac0c94
No known key found for this signature in database
GPG Key ID: 6088B7721C3E39F9

View File

@ -224,7 +224,7 @@ mod segment {
}
let _ = batcher.flush().await;
}
tokio::time::sleep(Duration::from_secs(60 * 2)).await; // 2 minutes
tokio::time::sleep(Duration::from_secs(60 * 60)).await; // one hour
}
});
}