diff --git a/meilisearch/src/routes/indexes/mod.rs b/meilisearch/src/routes/indexes/mod.rs index 59fa02dff..651977723 100644 --- a/meilisearch/src/routes/indexes/mod.rs +++ b/meilisearch/src/routes/indexes/mod.rs @@ -269,12 +269,8 @@ impl From for IndexStats { pub async fn get_index_stats( index_scheduler: GuardedData, Data>, index_uid: web::Path, - req: HttpRequest, - analytics: web::Data, ) -> Result { let index_uid = IndexUid::try_from(index_uid.into_inner())?; - analytics.publish("Stats Seen".to_string(), json!({ "per_index_uid": true }), Some(&req)); - let stats = IndexStats::from(index_scheduler.index_stats(&index_uid)?); debug!(returns = ?stats, "Get index stats"); diff --git a/meilisearch/src/routes/mod.rs b/meilisearch/src/routes/mod.rs index f2356fb7f..92d4af8e2 100644 --- a/meilisearch/src/routes/mod.rs +++ b/meilisearch/src/routes/mod.rs @@ -296,10 +296,7 @@ pub struct Stats { async fn get_stats( index_scheduler: GuardedData, Data>, auth_controller: GuardedData, Data>, - req: HttpRequest, - analytics: web::Data, ) -> Result { - analytics.publish("Stats Seen".to_string(), json!({ "per_index_uid": false }), Some(&req)); let filters = index_scheduler.filters(); let stats = create_all_stats((*index_scheduler).clone(), (*auth_controller).clone(), filters)?;