Fix scheduler
This commit is contained in:
parent
d4871a3d51
commit
7f31590e50
@ -41,6 +41,7 @@ import reactor.core.publisher.Mono;
|
|||||||
import reactor.core.publisher.SignalType;
|
import reactor.core.publisher.SignalType;
|
||||||
import reactor.core.publisher.Sinks;
|
import reactor.core.publisher.Sinks;
|
||||||
import reactor.core.publisher.Sinks.Many;
|
import reactor.core.publisher.Sinks.Many;
|
||||||
|
import reactor.core.scheduler.Schedulers;
|
||||||
|
|
||||||
public class AsyncTdMiddleEventBusClient extends AbstractVerticle implements AsyncTdMiddle {
|
public class AsyncTdMiddleEventBusClient extends AbstractVerticle implements AsyncTdMiddle {
|
||||||
|
|
||||||
@ -149,6 +150,7 @@ public class AsyncTdMiddleEventBusClient extends AbstractVerticle implements Asy
|
|||||||
if (msg.succeeded()) {
|
if (msg.succeeded()) {
|
||||||
this.listen()
|
this.listen()
|
||||||
.timeout(Duration.ofSeconds(30))
|
.timeout(Duration.ofSeconds(30))
|
||||||
|
.subscribeOn(Schedulers.single())
|
||||||
.subscribe(v -> {}, future::fail, future::complete);
|
.subscribe(v -> {}, future::fail, future::complete);
|
||||||
} else {
|
} else {
|
||||||
future.fail(msg.cause());
|
future.fail(msg.cause());
|
||||||
|
Loading…
Reference in New Issue
Block a user