Skip to content

Commit 26e40e8

Browse files
committed
ignore mmap advise errors
1 parent 59be444 commit 26e40e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

turbopack/crates/turbo-persistence/src/static_sorted_file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl StaticSortedFile {
112112
#[cfg(unix)]
113113
{
114114
let offset = meta.block_offsets_start(mmap.len());
115-
mmap.advise_range(memmap2::Advice::WillNeed, offset, mmap.len() - offset)?;
115+
let _ = mmap.advise_range(memmap2::Advice::WillNeed, offset, mmap.len() - offset);
116116
}
117117
let file = Self { meta, mmap };
118118
Ok(file)
@@ -403,11 +403,11 @@ impl StaticSortedFile {
403403
);
404404
}
405405
#[cfg(unix)]
406-
self.mmap.advise_range(
406+
let _ = self.mmap.advise_range(
407407
memmap2::Advice::WillNeed,
408408
block_start,
409409
block_end - block_start,
410-
)?;
410+
);
411411
let uncompressed_length = (&self.mmap[block_start..block_start + 4]).read_u32::<BE>()?;
412412
let block = &self.mmap[block_start + 4..block_end];
413413
Ok((uncompressed_length, block))

0 commit comments

Comments
 (0)