Skip to content

Commit 4bfab0e

Browse files
committed
aaargh!
1 parent c02685b commit 4bfab0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,14 +406,14 @@ impl bao_tree::io::mixed::Sender for BaoTreeSender {
406406
}
407407

408408
#[cfg(test)]
409+
#[cfg(feature = "fs-store")]
409410
pub mod tests {
410411
use bao_tree::{io::outboard::PreOrderMemOutboard, ChunkRanges};
411412

412413
use crate::{hash::Hash, store::IROH_BLOCK_SIZE};
413414

414415
/// Create n0 flavoured bao. Note that this can be used to request ranges below a chunk group size,
415416
/// which can not be exported via bao because we don't store hashes below the chunk group level.
416-
#[cfg(feature = "fs-store")]
417417
pub fn create_n0_bao(data: &[u8], ranges: &ChunkRanges) -> anyhow::Result<(Hash, Vec<u8>)> {
418418
let outboard = PreOrderMemOutboard::create(data, IROH_BLOCK_SIZE);
419419
let mut encoded = Vec::new();

0 commit comments

Comments
 (0)