Skip to content

Commit

Permalink
added enhancement for collision detection
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlen committed Sep 21, 2022
1 parent 5a6520a commit aec2eda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public boolean detectCollision() {
Set<ByteArrayWrapper> baseWrittenKeys = writtenKeysByThread.getOrDefault(threadId, new HashSet<>());

for (Long threadId2 : threads) {
if (threadId.equals(threadId2)) {
if (threadId >= threadId2) {
continue;
}

Expand Down

0 comments on commit aec2eda

Please sign in to comment.