fix delete_warren_file not calling metrics and notifier
This commit is contained in:
@@ -221,6 +221,13 @@ where
|
||||
.delete_file(request.to_fs_request(&warren))
|
||||
.await;
|
||||
|
||||
if let Ok(path) = result.as_ref() {
|
||||
self.metrics.record_warren_file_deletion_success().await;
|
||||
self.notifier.warren_file_deleted(&warren, path).await;
|
||||
} else {
|
||||
self.metrics.record_warren_file_deletion_failure().await;
|
||||
}
|
||||
|
||||
result.map_err(Into::into)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user