Skip to content

Commit d73c801

Browse files
committed
Add a comment
1 parent ed92a5c commit d73c801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scalardb-test/src/main/java/kelpie/scalardb/sensor/SensorProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ private void updateRevision(DistributedTransaction transaction, int timestamp, i
7878

7979
boolean hasDuplicatedRevision;
8080
List<Result> results;
81+
82+
// Alternate between scan() and getScanner() based on the attempt count.
8183
boolean scannerUsed = numAttempts.getAndIncrement() % 2 == 0;
8284
if (!scannerUsed) {
8385
// Use scan()

0 commit comments

Comments
 (0)