Skip to content

Commit 7a1f14b

Browse files
committed
refactor(gc): move store::fs::gc -> store::gc
1 parent 4645452 commit 7a1f14b

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/store/fs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ use bytes::Bytes;
9191
use delete_set::{BaoFilePart, ProtectHandle};
9292
use entity_manager::{EntityManagerState, SpawnArg};
9393
use entry_state::{DataLocation, OutboardLocation};
94-
use gc::run_gc;
9594
use import::{ImportEntry, ImportSource};
9695
use irpc::{channel::mpsc, RpcMessage};
9796
use meta::list_blobs;
@@ -120,6 +119,7 @@ use crate::{
120119
},
121120
util::entity_manager::{self, ActiveEntityState},
122121
},
122+
gc::run_gc,
123123
util::{BaoTreeSender, FixedSize, MemOrFile, ValueOrPoisioned},
124124
IROH_BLOCK_SIZE,
125125
},
@@ -141,7 +141,6 @@ use entry_state::EntryState;
141141
use import::{import_byte_stream, import_bytes, import_path, ImportEntryMsg};
142142
use options::Options;
143143
use tracing::Instrument;
144-
mod gc;
145144

146145
use crate::{
147146
api::{

src/store/fs/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::{
44
time::Duration,
55
};
66

7-
pub use super::gc::{GcConfig, ProtectCb, ProtectOutcome};
87
use super::{meta::raw_outboard_size, temp_name};
8+
pub use crate::store::gc::{GcConfig, ProtectCb, ProtectOutcome};
99
use crate::Hash;
1010

1111
/// Options for directories used by the file store.
File renamed without changes.

src/store/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use bao_tree::BlockSize;
88
#[cfg(feature = "fs-store")]
99
pub mod fs;
10+
mod gc;
1011
pub mod mem;
1112
pub mod readonly_mem;
1213
mod test;

0 commit comments

Comments
 (0)