Skip removeRecipientViewFromMrmData pipeline if there are no keys

This commit is contained in:
Chris Eager 2024-09-05 18:38:30 -05:00 committed by Chris Eager
parent ad17c6e40d
commit 0602149c52
1 changed files with 4 additions and 0 deletions

View File

@ -472,6 +472,10 @@ public class MessagesCache extends RedisClusterPubSubAdapter<String, String> imp
void removeRecipientViewFromMrmData(final List<byte[]> sharedMrmKeys, final UUID accountUuid,
final byte deviceId) {
if (sharedMrmKeys.isEmpty()) {
return;
}
final Timer.Sample sample = Timer.start();
Flux.fromIterable(sharedMrmKeys)
.collectMultimap(SlotHash::getSlot)