Skip to content

Commit

Permalink
removes comment
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebanasios committed Dec 8, 2024
1 parent a3508ef commit eba1dd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private Mono<KustoOperationResult> executeStreamingIngest(String clusterEndpoint
String contentEncoding = isStreamSource ? "gzip" : null;
String contentType = isStreamSource ? "application/octet-stream" : "application/json";

return Mono.fromCallable(() -> determineTimeout(properties, CommandType.STREAMING_INGEST, clusterUrl)) // Step 1: Determine timeout
return Mono.fromCallable(() -> determineTimeout(properties, CommandType.STREAMING_INGEST, clusterUrl))
.flatMap(timeoutMs -> {

// This was a separate method but was moved into the body of this method because it performs a side effect
Expand Down Expand Up @@ -344,7 +344,7 @@ private Mono<KustoOperationResult> executeStreamingIngest(String clusterEndpoint
.withBody(data)
.build();
}).flatMap(httpRequest -> MonitoredActivity.wrap(postAsync(httpRequest, timeoutMs), "ClientImpl.executeStreamingIngest")
.flatMap(response -> Mono.fromCallable(() -> new KustoOperationResult(response, "v1")))
.flatMap(response -> Mono.fromCallable(() -> new KustoOperationResult(response, "v1")).subscribeOn(Schedulers.boundedElastic()))
.onErrorMap(KustoServiceQueryError.class,
e -> new DataClientException(clusterEndpoint, "Error converting json response to KustoOperationResult:" + e.getMessage(),
e))
Expand Down

0 comments on commit eba1dd5

Please sign in to comment.