Skip to content

Commit 35962c6

Browse files
committed
chore: fmt
1 parent bdcb372 commit 35962c6

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

rust/cubestore/cubestore/benches/cachestore_queue.rs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,29 @@ async fn do_insert(
5555
}
5656
}
5757

58-
fn do_insert_bench(c: &mut Criterion, runtime: &Runtime, total: usize, size_kb: usize, do_duplicates: bool) {
58+
fn do_insert_bench(
59+
c: &mut Criterion,
60+
runtime: &Runtime,
61+
total: usize,
62+
size_kb: usize,
63+
do_duplicates: bool,
64+
) {
5965
let cachestore = runtime.block_on(async {
60-
prepare_cachestore(&format!("cachestore_queue_add_{}_{}", size_kb, do_duplicates)).unwrap()
66+
prepare_cachestore(&format!(
67+
"cachestore_queue_add_{}_{}",
68+
size_kb, do_duplicates
69+
))
70+
.unwrap()
6171
});
6272

6373
c.bench_with_input(
64-
BenchmarkId::new(format!("queue_add duplicates_check: {} queues:1, size:{} kb", do_duplicates, size_kb), total),
74+
BenchmarkId::new(
75+
format!(
76+
"queue_add duplicates_check: {} queues:1, size:{} kb",
77+
do_duplicates, size_kb
78+
),
79+
total,
80+
),
6581
&(total, size_kb),
6682
|b, (total, size_kb)| {
6783
let mut insert_id_padding = 0;

rust/cubestore/cubestore/src/cachestore/cache_rocksstore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ impl CacheStore for RocksCacheStore {
10811081
payload.priority,
10821082
payload.orphaned.clone(),
10831083
),
1084-
batch_pipe
1084+
batch_pipe,
10851085
)?;
10861086

10871087
if added {

rust/cubestore/cubestore/src/metastore/rocks_table.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,12 @@ pub trait RocksTable: BaseRocksTable + Debug + Send + Sync {
577577
if let Some(row) = id_row_opt {
578578
Ok((row, false))
579579
} else {
580-
let row = self.do_insert(None, row, batch_pipe, Some(RocksSecondaryIndex::get_id(secondary_index)))?;
580+
let row = self.do_insert(
581+
None,
582+
row,
583+
batch_pipe,
584+
Some(RocksSecondaryIndex::get_id(secondary_index)),
585+
)?;
581586

582587
Ok((row, true))
583588
}

0 commit comments

Comments
 (0)