Skip to content

Commit

Permalink
fix: fix bench
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Jul 2, 2024
1 parent 01e506b commit 0060e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/benches/bench_block_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl CacheBase for FoyerCache {
async move {
get_fake_block(sst_object_id, block_idx, latency)
.await
.map(|block| (Arc::new(block), foyer::CacheContext::Default))
.map(|block| Arc::new(block))
}
})
.await?;
Expand Down Expand Up @@ -229,7 +229,7 @@ impl CacheBase for FoyerHybridCache {
async move {
get_fake_block(sst_object_id, block_idx, latency)
.await
.map(|block| (Arc::new(block), foyer::CacheContext::Default))
.map(|block| Arc::new(block))
.map_err(anyhow::Error::from)
}
})
Expand Down

0 comments on commit 0060e87

Please sign in to comment.