Skip to content

Commit

Permalink
Minor fixes related to ApacheHttpClient5Transport (#329)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
  • Loading branch information
reta committed Jan 17, 2023
1 parent 8c6bac4 commit 510f4ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion USER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ OpenSearchClient client = new OpenSearchClient(transport);
```java
final Transport transport = ApacheHttpClient5TransportBuilder
.builder(hosts)
.mapper(new JacksonJsonpMapper())
.setMapper(new JacksonJsonpMapper())
.build();
OpenSearchClient client = new OpenSearchClient(transport);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

import org.apache.hc.core5.http.ClassicHttpResponse;
import org.apache.hc.core5.http.nio.AsyncResponseConsumer;
import org.opensearch.client.nio.HeapBufferedAsyncResponseConsumer;
import org.opensearch.client.transport.httpclient5.internal.HeapBufferedAsyncResponseConsumer;

/**
* Factory used to create instances of {@link AsyncResponseConsumer}. Each request retry needs its own instance of the
Expand Down

0 comments on commit 510f4ef

Please sign in to comment.