Skip to content

Commit 83f82f7

Browse files
author
aesteve
committed
4.0.0.CR2
1 parent 3811ea8 commit 83f82f7

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Artifacts are published [here](https://search.maven.org/artifact/io.reactiverse/
1212

1313
| Project | Vert.x | AWS sdk |
1414
| ------- | ------ | ------- |
15+
| 1.0.0 | 4.0.0 | 2.15.40 |
1516
| 0.7.0 | 3.9.4 | 2.15.23 |
1617
| 0.6.0 | 3.9.2 | 2.14.7 |
1718
| 0.5.1 | 3.9.2 | 2.13.6 |

build.gradle.kts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
val vertxVersion = "4.0.0.CR1"
2-
val awsSdkVersion = "2.15.23"
3-
val junit5Version = "5.4.0"
1+
val vertxVersion = "4.0.0.CR2"
2+
val awsSdkVersion = "2.15.40"
3+
val junit5Version = "5.7.0"
44
val logbackVersion = "1.2.3"
55
val integrationOption = "tests.integration"
66

@@ -72,8 +72,7 @@ dependencies {
7272
testImplementation("ch.qos.logback:logback-classic:$logbackVersion")
7373
testImplementation("ch.qos.logback:logback-core:$logbackVersion")
7474
testImplementation("software.amazon.awssdk:aws-sdk-java:$awsSdkVersion")
75-
76-
testCompile("org.junit.jupiter:junit-jupiter-engine:$junit5Version")
75+
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junit5Version")
7776
}
7877

7978
java {

src/main/java/io/reactiverse/awssdk/VertxNioAsyncHttpClient.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import io.vertx.core.http.HttpClient;
99
import io.vertx.core.http.HttpClientOptions;
1010
import io.vertx.core.http.HttpClientRequest;
11+
import io.vertx.core.http.HttpClientResponse;
1112
import io.vertx.core.http.HttpHeaders;
1213
import io.vertx.core.http.HttpMethod;
1314
import io.vertx.core.http.RequestOptions;
@@ -76,11 +77,13 @@ void executeOnContext(AsyncExecuteRequest asyncExecuteRequest, CompletableFuture
7677
return;
7778
}
7879
HttpClientRequest vRequest = ar.result();
79-
vRequest.onFailure(error -> {
80-
responseHandler.onError(error);
81-
fut.completeExceptionally(error);
82-
});
83-
vRequest.onSuccess(vResponse -> {
80+
vRequest.response(res -> {
81+
if (res.failed()) {
82+
responseHandler.onError(res.cause());
83+
fut.completeExceptionally(res.cause());
84+
return;
85+
}
86+
HttpClientResponse vResponse = res.result();
8487
final SdkHttpFullResponse.Builder builder = SdkHttpResponse.builder()
8588
.statusCode(vResponse.statusCode())
8689
.statusText(vResponse.statusMessage());

0 commit comments

Comments
 (0)