mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user