mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 03:48:05 +01:00
Fix a poorly-mirrored cache delete operation.
This commit is contained in:
committed by
Jon Chambers
parent
6adcebb247
commit
c745fe7778
@@ -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