Skip to content

Commit 0037d48

Browse files
committed
Fixup
1 parent 274d3b6 commit 0037d48

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/metadata/cache.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,16 @@ pub struct ReadAheadMetadataCache<F: MetadataFetch> {
9797

9898
impl<F: MetadataFetch> ReadAheadMetadataCache<F> {
9999
/// Create a new EagerMetadataCache wrapping the given MetadataFetch
100-
pub fn new(inner: F, initial_size: u64, increment_multiple: u64) -> AsyncTiffResult<Self> {
100+
pub fn new(inner: F) -> AsyncTiffResult<Self> {
101+
Self::with_increment_configuration(inner, 32 * 1024, 2)
102+
}
103+
104+
/// Create a new EagerMetadataCache with custom initial size and increment multiple
105+
pub fn with_increment_configuration(
106+
inner: F,
107+
initial_size: u64,
108+
increment_multiple: u64,
109+
) -> AsyncTiffResult<Self> {
101110
Ok(Self {
102111
inner,
103112
cache: Arc::new(Mutex::new(SequentialCache::new())),

0 commit comments

Comments
 (0)