mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 06:16:47 +00:00
MigrateRegistrationRecoveryPasswordsCommand: un-invert semantics of dryRun flag
This commit is contained in:
1 parent
717fb57a14
commit
2c33c0cc37
1 file changed
+6
-6
+6
-6
@@ -87,12 +87,12 @@ public class MigrateRegistrationRecoveryPasswordsCommand extends AbstractCommand
|
||||
final long expiration = tuple.getT3();
|
||||
|
||||
return dryRun
|
||||
? Mono.fromFuture(() -> registrationRecoveryPasswordsManager.migrateE164Record(e164, saltedTokenHash, expiration))
|
||||
.onErrorResume(throwable -> {
|
||||
logger.warn("Failed to migrate record for {}", e164, throwable);
|
||||
return Mono.empty();
|
||||
})
|
||||
: Mono.just(false);
|
||||
? Mono.just(false)
|
||||
: Mono.fromFuture(() -> registrationRecoveryPasswordsManager.migrateE164Record(e164, saltedTokenHash, expiration))
|
||||
.onErrorResume(throwable -> {
|
||||
logger.warn("Failed to migrate record for {}", e164, throwable);
|
||||
return Mono.empty();
|
||||
});
|
||||
}, maxConcurrency)
|
||||
.filter(migrated -> migrated)
|
||||
.doOnNext(ignored -> recordsMigratedCounter.increment())
|
||||
|
||||
Reference in new issue
Block a user