mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 10:28:12 +01:00
Defer asynchronous actions when deriving Mono instances from futures
This commit is contained in:
committed by
Chris Eager
parent
ff1ef90a6d
commit
a96ee57c7e
@@ -357,7 +357,7 @@ public class WebSocketConnection implements MessageAvailabilityListener, Displac
|
||||
.tap(Micrometer.metrics(Metrics.globalRegistry))
|
||||
.limitRate(MESSAGE_PUBLISHER_LIMIT_RATE)
|
||||
.flatMapSequential(envelope ->
|
||||
Mono.fromFuture(sendMessage(envelope)
|
||||
Mono.fromFuture(() -> sendMessage(envelope)
|
||||
.orTimeout(sendFuturesTimeoutMillis, TimeUnit.MILLISECONDS)))
|
||||
.subscribeOn(messageDeliveryScheduler)
|
||||
.subscribe(
|
||||
|
||||
Reference in New Issue
Block a user