Shorten eviction time to 7 days (to match message retention time).
This commit is contained in:
parent
ad32555cc9
commit
e9ea79cc8e
|
@ -186,7 +186,7 @@ public class ApnFallbackManager implements Managed {
|
||||||
|
|
||||||
long deviceLastSeen = device.getLastSeen();
|
long deviceLastSeen = device.getLastSeen();
|
||||||
|
|
||||||
if (deviceLastSeen < System.currentTimeMillis() - TimeUnit.DAYS.toMillis(90)) {
|
if (deviceLastSeen < System.currentTimeMillis() - TimeUnit.DAYS.toMillis(7)) {
|
||||||
evicted.mark();
|
evicted.mark();
|
||||||
remove(account, device);
|
remove(account, device);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue