Update Mono.then(Supplier) deprecated calls

Reactor Core has now deprecated the `Mono.then(Supplier)`.
This is now replaced with `Mono.then(Mono.defer(Supplier))`.
This commit is contained in:
Brian Clozel
2017-04-18 21:11:19 +02:00
parent 09b0364ad7
commit 88f8df4dce
4 changed files with 7 additions and 7 deletions

View File

@@ -90,7 +90,7 @@ public class FluxExchangeResult<T> extends ExchangeResult {
public byte[] getResponseBodyContent() {
return this.body.ignoreElements()
.timeout(this.timeout, Mono.error(TIMEOUT_ERROR))
.then(() -> Mono.just(super.getResponseBodyContent()))
.then(Mono.defer(() -> Mono.just(super.getResponseBodyContent())))
.block();
}