Skip to content

Commit

Permalink
Pass vertx-content as additional param to vertx.io Future.fromComplet…
Browse files Browse the repository at this point in the history
…ionStage
  • Loading branch information
lucifer4j committed Oct 9, 2023
1 parent fe0d02d commit ce2c100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public VertxPreparedStatement prepareStatement(String query) {
@Override
public Future<ResultSetGroup> execute(String query) {
var originalFuture = pinotConnection.executeAsync(query);
return Future.fromCompletionStage(originalFuture);
return Future.fromCompletionStage(originalFuture, vertx.getOrCreateContext());
}

@Override
public Future<ResultSetGroup> execute(@Nullable String tableName, String query) {
var originalFuture = pinotConnection.executeAsync(tableName, query);
return Future.fromCompletionStage(originalFuture);
return Future.fromCompletionStage(originalFuture, vertx.getOrCreateContext());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public VertxPreparedStatementImpl(Vertx vertx, PreparedStatement preparedStateme
@Override
public Future<ResultSetGroup> execute() {
var originalFuture = preparedStatement.executeAsync();
return Future.fromCompletionStage(originalFuture);
return Future.fromCompletionStage(originalFuture, vertx.getOrCreateContext());
}

@Override
Expand Down

0 comments on commit ce2c100

Please sign in to comment.