From b423ef72bec35fb2c5f28b60c6d45c479e8b60f4 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Mon, 8 Aug 2022 15:30:28 +0200 Subject: [PATCH] PROTO: hardcode version and interval for prototype analytics --- meilisearch-http/src/analytics/segment_analytics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meilisearch-http/src/analytics/segment_analytics.rs b/meilisearch-http/src/analytics/segment_analytics.rs index 726d0945a..9f122f190 100644 --- a/meilisearch-http/src/analytics/segment_analytics.rs +++ b/meilisearch-http/src/analytics/segment_analytics.rs @@ -271,8 +271,8 @@ impl Segment { } async fn run(mut self, meilisearch: MeiliSearch) { - const INTERVAL: Duration = Duration::from_secs(60 * 60); // one hour - // The first batch must be sent after one hour. + const INTERVAL: Duration = Duration::from_secs(60); // one minute + // The first batch must be sent after one minute. let mut interval = tokio::time::interval_at(tokio::time::Instant::now() + INTERVAL, INTERVAL); @@ -302,7 +302,7 @@ impl Segment { .push(Identify { context: Some(json!({ "app": { - "version": env!("CARGO_PKG_VERSION").to_string(), + "version": "prototype-pagination-2".to_string(), }, })), user: self.user.clone(),