mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 09:46:47 +00:00
Set suppressCancel=true in Mono.fromFuture
This commit is contained in:
1 parent
48f633de11
commit
8348263fab
1 file changed
+4
-1
+4
-1
@@ -360,7 +360,10 @@ public class WebSocketConnection implements MessageAvailabilityListener, Displac
|
||||
.limitRate(MESSAGE_PUBLISHER_LIMIT_RATE)
|
||||
.flatMapSequential(envelope ->
|
||||
Mono.fromFuture(() -> sendMessage(envelope)
|
||||
.orTimeout(sendFuturesTimeoutMillis, TimeUnit.MILLISECONDS))
|
||||
.orTimeout(sendFuturesTimeoutMillis, TimeUnit.MILLISECONDS),
|
||||
// suppressCancel=true, because attempting to cancel the future has no effect, other than
|
||||
// causing dropped errors
|
||||
true)
|
||||
.onErrorResume(
|
||||
// let the first error pass through to terminate the subscription
|
||||
e -> {
|
||||
|
||||
Reference in new issue
Block a user