send the analytics even when the search fail

This commit is contained in:
Tamo 2021-11-02 12:38:01 +01:00
parent c32f13a909
commit 904bae98f8
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
3 changed files with 16 additions and 14 deletions

View file

@ -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);
}