Skip to content

Commit cc61e5a

Browse files
committed
style(test): use is_multiple_of instead of modulo comparison
1 parent d197725 commit cc61e5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodedb/tests/native_txn_commit_visibility.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn collection_on_nonzero_core() -> String {
8686
let vshard =
8787
VShardId::from_collection_in_database(nodedb::types::DatabaseId::DEFAULT, &name)
8888
.as_u32();
89-
if vshard as usize % NUM_CORES != 0 {
89+
if !(vshard as usize).is_multiple_of(NUM_CORES) {
9090
return name;
9191
}
9292
}

0 commit comments

Comments
 (0)