diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java b/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java index b84d40732..61d19a110 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java @@ -1362,7 +1362,7 @@ public class AccountsManager extends RedisPubSubAdapter implemen return cacheCluster.withCluster(connection -> CompletableFuture.allOf( account.getPhoneNumberIdentifierOptional().map(pni -> connection.async().setex(getAccountMapKey(pni.toString()), CACHE_TTL_SECONDS, account.getAccountIdentifier().toString()) - .toCompletableFuture()) + .toCompletableFuture()) .orElseGet(() -> CompletableFuture.completedFuture(null)), connection.async().setex(getAccountEntityKey(account.getAccountIdentifier()), CACHE_TTL_SECONDS, accountJson) .toCompletableFuture()));