mirror of
https://github.com/google/nomulus
synced 2026-07-06 00:04:50 +00:00
Remove entries from token store atomically (#3112)
just in case some other thread comes in while we're iterating
This commit is contained in:
@@ -185,7 +185,7 @@ public class TokenStore {
|
||||
if (Duration.between(availableTokens.timestamp(), clock.now())
|
||||
.compareTo(config.getRefreshPeriod())
|
||||
>= 0) {
|
||||
tokensMap.remove(user);
|
||||
tokensMap.remove(user, availableTokens);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user