This is an automated email from the ASF dual-hosted git repository. rouazana pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit aada789f4b4102cff8138995730585a3907fdc19 Author: Rene Cordier <[email protected]> AuthorDate: Wed Jul 24 11:01:44 2019 +0700 JAMES-2837 Fix delete and deleteBucket metrics for BlobStore --- .../src/main/java/org/apache/james/blob/api/MetricableBlobStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/blob/blob-api/src/main/java/org/apache/james/blob/api/MetricableBlobStore.java b/server/blob/blob-api/src/main/java/org/apache/james/blob/api/MetricableBlobStore.java index 5b82cb4..f2a6d60 100644 --- a/server/blob/blob-api/src/main/java/org/apache/james/blob/api/MetricableBlobStore.java +++ b/server/blob/blob-api/src/main/java/org/apache/james/blob/api/MetricableBlobStore.java @@ -76,7 +76,7 @@ public class MetricableBlobStore implements BlobStore { @Override public Mono<Void> deleteBucket(BucketName bucketName) { return metricFactory - .runPublishingTimerMetric(DELETE_BUCKET_TIMER_NAME, () -> blobStoreImpl.deleteBucket(bucketName)); + .runPublishingTimerMetric(DELETE_BUCKET_TIMER_NAME, blobStoreImpl.deleteBucket(bucketName)); } @Override @@ -87,6 +87,6 @@ public class MetricableBlobStore implements BlobStore { @Override public Mono<Void> delete(BucketName bucketName, BlobId blobId) { return metricFactory - .runPublishingTimerMetric(DELETE_TIMER_NAME, () -> blobStoreImpl.delete(bucketName, blobId)); + .runPublishingTimerMetric(DELETE_TIMER_NAME, blobStoreImpl.delete(bucketName, blobId)); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
