Skip to content

Commit

Permalink
fix: use concurrent hashmap instead of synchroniztion for recordcache
Browse files Browse the repository at this point in the history
Signed-off-by: Lev Povolotsky <[email protected]>
  • Loading branch information
povolev15 committed Jan 23, 2024
1 parent cc90eda commit 35dad2a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ protected final void markRead(@NonNull K key, @Nullable V value) {
* @return Whether it has been read
*/
protected final boolean hasBeenRead(@NonNull K key) {
var keyExistence = readCache.get(key);
return keyExistence != null && keyExistence != marker;
return readCache.containsKey(key);
}
}

0 comments on commit 35dad2a

Please sign in to comment.