From bf779f30ab1e9dd1a099c28ef26c6eaf4a3c6f10 Mon Sep 17 00:00:00 2001 From: Katherine Date: Thu, 24 Jul 2025 12:26:49 -0400 Subject: [PATCH] Fix number of accounts processed counter --- .../workers/EncryptDeviceCreationTimestampCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/workers/EncryptDeviceCreationTimestampCommand.java b/service/src/main/java/org/whispersystems/textsecuregcm/workers/EncryptDeviceCreationTimestampCommand.java index 017bb4416..d9594d901 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/workers/EncryptDeviceCreationTimestampCommand.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/workers/EncryptDeviceCreationTimestampCommand.java @@ -78,9 +78,10 @@ public class EncryptDeviceCreationTimestampCommand extends AbstractSinglePassCra log.warn("Failed to encrypt creation timestamp on device {}, account {}", device.getId(), account.getUuid(), throwable); return Mono.empty(); }); - }, MAX_CONCURRENCY), + }, MAX_CONCURRENCY) + .then() + .doOnSuccess(_ -> processedAccountCounter.increment()), MAX_CONCURRENCY) - .doOnComplete(processedAccountCounter::increment) .then() .block(); }