mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
send the analytics even when the search fail
This commit is contained in:
parent
c32f13a909
commit
904bae98f8
3 changed files with 16 additions and 14 deletions
|
@ -18,7 +18,7 @@ impl SearchAggregator {
|
|||
Self::default()
|
||||
}
|
||||
|
||||
pub fn finish(&mut self, _: &dyn Any) {}
|
||||
pub fn succeed(&mut self, _: &dyn Any) {}
|
||||
}
|
||||
|
||||
impl MockAnalytics {
|
||||
|
|
|
@ -364,7 +364,7 @@ impl SearchAggregator {
|
|||
ret
|
||||
}
|
||||
|
||||
pub fn finish(&mut self, result: &SearchResult) {
|
||||
pub fn succeed(&mut self, result: &SearchResult) {
|
||||
self.total_succeeded += 1;
|
||||
self.time_spent.push(result.processing_time_ms as usize);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue