mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 03:46:47 +00:00
Don't map a Mono<Void>
This commit is contained in:
1 parent
7f6da52349
commit
c8efcf5105
1 file changed
+1
-3
+1
-3
@@ -14,8 +14,6 @@ import java.time.Clock;
|
||||
import java.time.Duration;
|
||||
import java.util.HexFormat;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.stream.Collectors;
|
||||
import net.sourceforge.argparse4j.inf.Namespace;
|
||||
import net.sourceforge.argparse4j.inf.Subparser;
|
||||
import org.slf4j.Logger;
|
||||
@@ -143,7 +141,7 @@ public class RemoveExpiredBackupsCommand extends EnvironmentCommand<WhisperServe
|
||||
if (dryRun) {
|
||||
mono = Mono.just(true);
|
||||
} else {
|
||||
mono = Mono.fromCompletionStage(() -> backupManager.expireBackup(expiredBackup)).map(ignore -> true);
|
||||
mono = Mono.fromCompletionStage(() -> backupManager.expireBackup(expiredBackup)).thenReturn(true);
|
||||
}
|
||||
|
||||
return mono
|
||||
|
||||
Reference in new issue
Block a user