mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 10:28:12 +01:00
Set suppressCancel=true in Mono.fromFuture
This commit is contained in:
@@ -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