simplify conversion to CompletableFuture<Void>
This commit is contained in:
parent
0c4e98848e
commit
1366e28fd5
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ public final class Capability {
|
||||||
var callResult = this.promiseForCallForwarding.thenApply(
|
var callResult = this.promiseForCallForwarding.thenApply(
|
||||||
client -> client.call(interfaceId, methodId, ctx));
|
client -> client.call(interfaceId, methodId, ctx));
|
||||||
var pipeline = new QueuedPipeline(callResult.thenApply(result -> result.pipeline));
|
var pipeline = new QueuedPipeline(callResult.thenApply(result -> result.pipeline));
|
||||||
return new VoidPromiseAndPipeline(callResult.thenAccept(x -> {}), pipeline);
|
return new VoidPromiseAndPipeline(callResult.thenRun(() -> {}), pipeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue