Skip to content

Commit

Permalink
Update rest-client version (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez authored Oct 16, 2023
1 parent 5cd9340 commit 3414ffd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion java-client-serverless/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ publishing {
}

dependencies {
val elasticsearchVersion = "8.9.0"
val elasticsearchVersion = "8.10.0"
val jacksonVersion = "2.13.3"
val openTelemetryVersion = "1.29.0"

Expand Down
2 changes: 1 addition & 1 deletion java-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ publishing {
dependencies {
// Compile and test with the last 7.x version to make sure transition scenarios where
// the Java API client coexists with a 7.x HLRC work fine
val elasticsearchVersion = "7.17.7"
val elasticsearchVersion = "8.10.0"
val jacksonVersion = "2.13.3"
val openTelemetryVersion = "1.29.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,10 @@ public class SafeResponseConsumer<T> implements HttpAsyncResponseConsumer<T> {
/**
* Same as {@code RequestOptions.DEFAULT} with a safe consumer factory
*/
public static final RequestOptions DEFAULT_REQUEST_OPTIONS;

static {
RequestOptions.Builder builder = RequestOptions.DEFAULT.toBuilder();
builder.setHttpAsyncResponseConsumerFactory(DEFAULT_FACTORY);
DEFAULT_REQUEST_OPTIONS = builder.build();
}
public static final RequestOptions DEFAULT_REQUEST_OPTIONS = RequestOptions.DEFAULT
.toBuilder()
.setHttpAsyncResponseConsumerFactory(DEFAULT_FACTORY)
.build();

public SafeResponseConsumer(HttpAsyncResponseConsumer<T> delegate) {
this.delegate = delegate;
Expand Down

0 comments on commit 3414ffd

Please sign in to comment.