mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-01 09:42:11 +00:00
parent
4a25d3463b
commit
49068b4e00
@ -611,8 +611,11 @@ public class DefaultReactiveElasticsearchClient implements ReactiveElasticsearch
|
|||||||
|
|
||||||
String logId = ClientLogger.newLogId();
|
String logId = ClientLogger.newLogId();
|
||||||
|
|
||||||
return Flux.from(execute(webClient -> sendRequest(webClient, logId, request, headers)
|
return Flux
|
||||||
.exchangeToMono(clientResponse -> Mono.from(readResponseBody(logId, request, clientResponse, responseType)))));
|
.from(execute(webClient -> sendRequest(webClient, logId, request, headers).exchangeToMono(clientResponse -> {
|
||||||
|
Publisher<? extends Resp> publisher = readResponseBody(logId, request, clientResponse, responseType);
|
||||||
|
return Mono.from(publisher);
|
||||||
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
private RequestBodySpec sendRequest(WebClient webClient, String logId, Request request, HttpHeaders headers) {
|
private RequestBodySpec sendRequest(WebClient webClient, String logId, Request request, HttpHeaders headers) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user