From 234c9eee704cd4ad821c62f3a93aea5aecea18f6 Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Sun, 9 Jun 2024 20:47:51 +0200 Subject: [PATCH] restore disk_space_used function --- src/manifest.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manifest.rs b/src/manifest.rs index f9d9d27..de7bdc6 100644 --- a/src/manifest.rs +++ b/src/manifest.rs @@ -294,7 +294,7 @@ impl SegmentManifest { .collect() } - /* /// Returns the amount of bytes on disk that are occupied by blobs. + /// Returns the amount of bytes on disk that are occupied by blobs. #[must_use] pub fn disk_space_used(&self) -> u64 { self.segments @@ -303,7 +303,7 @@ impl SegmentManifest { .values() .map(|x| x.meta.compressed_bytes) .sum::() - } */ + } /// Returns the amount of stale bytes #[must_use]