mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 13:46:47 +00:00
Fix a poorly-mirrored cache delete operation.
This commit is contained in:
1 parent
6adcebb247
commit
c745fe7778
1 file changed
+1
-1
+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());
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user