Skip to content

Commit 1cfc1bc

Browse files
committed
Remove remaining callback
1 parent a306add commit 1cfc1bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vertx-oracle-client/src/main/java/io/vertx/oracleclient/impl/CommandHandler.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,27 +94,27 @@ public int getSecretKey() {
9494

9595
public Future<Void> afterAcquire() {
9696
PromiseInternal<Void> promise = context.owner().promise();
97-
context.executeBlocking(prom -> {
97+
context.<Void>executeBlocking(prom -> {
9898
try {
9999
connection.beginRequest();
100100
prom.complete();
101101
} catch (SQLException e) {
102102
prom.fail(e);
103103
}
104-
}, false, promise);
104+
}, false).onComplete(promise);
105105
return promise.future();
106106
}
107107

108108
public Future<Void> beforeRecycle() {
109109
PromiseInternal<Void> promise = context.owner().promise();
110-
context.executeBlocking(prom -> {
110+
context.<Void>executeBlocking(prom -> {
111111
try {
112112
connection.endRequest();
113113
prom.complete();
114114
} catch (SQLException e) {
115115
prom.fail(e);
116116
}
117-
}, false, promise);
117+
}, false).onComplete(promise);
118118
return promise.future();
119119
}
120120

0 commit comments

Comments
 (0)