From f72a9fcfc476ff20a08cf2d5e64d120d77c7b382 Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Sat, 26 Oct 2024 21:06:14 +0200 Subject: [PATCH] refactor --- src/blob_tree/mod.rs | 2 +- src/lib.rs | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/blob_tree/mod.rs b/src/blob_tree/mod.rs index 9f4bf76..9a234d6 100644 --- a/src/blob_tree/mod.rs +++ b/src/blob_tree/mod.rs @@ -89,7 +89,7 @@ impl BlobTree { &self, seqno: SeqNo, gc_watermark: SeqNo, - ) -> crate::Result { + ) -> crate::Result { use std::io::{Error as IoError, ErrorKind as IoErrorKind}; use MaybeInlineValue::{Indirect, Inline}; diff --git a/src/lib.rs b/src/lib.rs index e275ed6..58c5663 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -203,7 +203,11 @@ pub use any_tree::AnyTree; pub use blob_tree::BlobTree; -// TODO: move GC strategies into `gc` module -pub use value_log::{ - BlobCache, GcReport, GcStrategy, Slice, SpaceAmpStrategy, StaleThresholdStrategy, -}; +pub use value_log::{BlobCache, Slice}; + +/// Blob garbage collection utilities +pub mod gc { + pub use value_log::{ + GcReport as Report, GcStrategy as Strategy, SpaceAmpStrategy, StaleThresholdStrategy, + }; +}