From 9a62ac0c94603d5d93eb8640f738b999e9a92117 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 26 Oct 2021 13:24:53 +0200 Subject: [PATCH] send the analytics only once every hours --- meilisearch-http/src/analytics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/analytics.rs b/meilisearch-http/src/analytics.rs index 467d04c35..4f969ea9f 100644 --- a/meilisearch-http/src/analytics.rs +++ b/meilisearch-http/src/analytics.rs @@ -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 } }); }