Resolve minor warnings/suggestions in `AccountsManager`

This commit is contained in:
Jon Chambers 2024-11-15 15:07:23 -05:00 committed by Jon Chambers
parent ba55d6caeb
commit b32e67ff9e
1 changed files with 2 additions and 3 deletions

View File

@ -163,8 +163,8 @@ public class AccountsManager extends RedisPubSubAdapter<String, String> implemen
private static final ObjectWriter ACCOUNT_REDIS_JSON_WRITER = SystemMapper.jsonMapper()
.writer(SystemMapper.excludingField(Account.class, List.of("uuid")));
private static Duration MESSAGE_POLL_INTERVAL = Duration.ofSeconds(1);
private static Duration MAX_SERVER_CLOCK_DRIFT = Duration.ofSeconds(5);
private static final Duration MESSAGE_POLL_INTERVAL = Duration.ofSeconds(1);
private static final Duration MAX_SERVER_CLOCK_DRIFT = Duration.ofSeconds(5);
// An account that's used at least daily will get reset in the cache at least once per day when its "last seen"
// timestamp updates; expiring entries after two days will help clear out "zombie" cache entries that are read
@ -738,7 +738,6 @@ public class AccountsManager extends RedisPubSubAdapter<String, String> implemen
}
account.getDevices()
.stream()
.forEach(device -> device.setPhoneNumberIdentityRegistrationId(pniRegistrationIds.get(device.getId())));
account.setPhoneNumberIdentityKey(pniIdentityKey);