1
0
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:
gbrodman
2026-07-01 14:42:59 -04:00
committed by GitHub
parent 7766db36a7
commit c7a27061d8
@@ -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);
}
});
}