mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-26 12:35:20 +01:00
Don't keep unlinked account cached forever
This commit is contained in:
parent
a4d499153d
commit
1e9e1c53e2
@ -55,9 +55,6 @@ public abstract class CachedLinkProvider implements LinkProvider {
|
||||
.expireAfter(new Expiry<UUID, Long>() {
|
||||
@Override
|
||||
public long expireAfterCreate(@NonNull UUID key, @NonNull Long value, long currentTime) {
|
||||
if (value == UNLINKED_USER) {
|
||||
return Long.MAX_VALUE;
|
||||
}
|
||||
return TimeUnit.MINUTES.toNanos(5);
|
||||
}
|
||||
|
||||
@ -68,9 +65,6 @@ public abstract class CachedLinkProvider implements LinkProvider {
|
||||
long currentTime,
|
||||
@NonNegative long currentDuration
|
||||
) {
|
||||
if (value == UNLINKED_USER) {
|
||||
return Long.MAX_VALUE;
|
||||
}
|
||||
return currentDuration;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user