mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-05-30 16:52:11 +00:00
parent
4a25d3463b
commit
49068b4e00
@ -611,8 +611,11 @@ public class DefaultReactiveElasticsearchClient implements ReactiveElasticsearch
|
||||
|
||||
String logId = ClientLogger.newLogId();
|
||||
|
||||
return Flux.from(execute(webClient -> sendRequest(webClient, logId, request, headers)
|
||||
.exchangeToMono(clientResponse -> Mono.from(readResponseBody(logId, request, clientResponse, responseType)))));
|
||||
return Flux
|
||||
.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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user