Skip to content

Commit 0f5c959

Browse files
authored
fix(kafka-deduplicator): handle clippy warning observed in dev (#38887)
1 parent 8ed3d7c commit 0f5c959

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/kafka-deduplicator/src/checkpoint_manager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ impl CheckpointManager {
416416
counter_for_partition = *counter_guard.get(partition).unwrap_or(&0_u32);
417417
}
418418

419-
if counter_for_partition % full_checkpoint_interval == 0 {
419+
// when full_checkpoint_interval is 0, we default to always performing Full checkpoints
420+
if counter_for_partition.is_multiple_of(full_checkpoint_interval) {
420421
CheckpointMode::Full
421422
} else {
422423
CheckpointMode::Incremental

0 commit comments

Comments
 (0)