From 386182bfb5411464e94a113d87106fdd3f44324c Mon Sep 17 00:00:00 2001 From: Little-Wallace Date: Mon, 26 Feb 2024 18:05:47 +0800 Subject: [PATCH] fix format Signed-off-by: Little-Wallace --- src/storage/benches/bench_compactor.rs | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/src/storage/benches/bench_compactor.rs b/src/storage/benches/bench_compactor.rs index 563080fcf92c7..0168519688bf1 100644 --- a/src/storage/benches/bench_compactor.rs +++ b/src/storage/benches/bench_compactor.rs @@ -220,15 +220,29 @@ fn bench_merge_iterator_compactor(c: &mut Criterion) { let sstable_store = mock_sstable_store(); let test_key_size = 256 * 1024; let info1 = runtime - .block_on(async { build_table(sstable_store.clone(), 1, 0..test_key_size/2, 1).await }); - let info2 = runtime - .block_on(async { build_table(sstable_store.clone(), 2, test_key_size/2 .. test_key_size, 1).await }); + .block_on(async { build_table(sstable_store.clone(), 1, 0..test_key_size / 2, 1).await }); + let info2 = runtime.block_on(async { + build_table( + sstable_store.clone(), + 2, + test_key_size / 2..test_key_size, + 1, + ) + .await + }); let level1 = vec![info1, info2]; let info1 = runtime - .block_on(async { build_table(sstable_store.clone(), 3, 0..test_key_size/2, 2).await }); - let info2 = runtime - .block_on(async { build_table(sstable_store.clone(), 4, test_key_size/2 .. test_key_size, 2).await }); + .block_on(async { build_table(sstable_store.clone(), 3, 0..test_key_size / 2, 2).await }); + let info2 = runtime.block_on(async { + build_table( + sstable_store.clone(), + 4, + test_key_size / 2..test_key_size, + 2, + ) + .await + }); let level2 = vec![info1, info2]; let read_options = Arc::new(SstableIteratorReadOptions { cache_policy: CachePolicy::Fill(CachePriority::High),