Fix a poorly-mirrored cache delete operation.

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2020-06-17 15:35:46 -04:00
1 parent 6adcebb247
commit c745fe7778
1 file changed
+1 -1
@@ -131,7 +131,7 @@ public class UsernamesManager {
cacheCluster.useWriteCluster(connection -> {
final RedisAdvancedClusterAsyncCommands<String, String> asyncCommands = connection.async();
maybeOldUsername.ifPresent(asyncCommands::del);
maybeOldUsername.ifPresent(oldUsername -> asyncCommands.del(getUsernameMapKey(oldUsername)));
asyncCommands.set(uuidMapKey, username);
asyncCommands.set(usernameMapKey, uuid.toString());
});