fix delete_warren_file not calling metrics and notifier

This commit is contained in:
2025-07-16 05:39:21 +02:00
parent 949ca75373
commit b121c27b37

View File

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