Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Oct 26, 2024
1 parent 4be8746 commit f72a9fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/blob_tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl BlobTree {
&self,
seqno: SeqNo,
gc_watermark: SeqNo,
) -> crate::Result<crate::GcReport> {
) -> crate::Result<crate::gc::Report> {
use std::io::{Error as IoError, ErrorKind as IoErrorKind};
use MaybeInlineValue::{Indirect, Inline};

Expand Down
12 changes: 8 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

0 comments on commit f72a9fc

Please sign in to comment.