Skip to content

Commit

Permalink
Adapt to context internal changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Sep 18, 2023
1 parent 58db992 commit 820ca0b
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import io.vertx.core.*;
import io.vertx.core.impl.ContextInternal;
import io.vertx.core.impl.EventLoopContext;
import io.vertx.core.impl.VertxInternal;
import io.vertx.core.impl.logging.Logger;
import io.vertx.core.impl.logging.LoggerFactory;
Expand Down Expand Up @@ -146,7 +145,7 @@ public boolean isValid(RedisConnectionInternal conn) {
}

@Override
public void connect(EventLoopContext ctx, Listener listener, Handler<AsyncResult<ConnectResult<RedisConnectionInternal>>> onConnect) {
public void connect(ContextInternal ctx, Listener listener, Handler<AsyncResult<ConnectResult<RedisConnectionInternal>>> onConnect) {
// verify if we can make this connection
final boolean netClientSsl = netClientOptions.isSsl();
final boolean connectionStringSsl = redisURI.ssl();
Expand Down Expand Up @@ -378,9 +377,9 @@ private void setup(ContextInternal ctx, RedisConnection connection, Request setu

public Future<PooledRedisConnection> getConnection(String connectionString, Request setup) {
final Promise<Lease<RedisConnectionInternal>> promise = vertx.promise();
final EventLoopContext eventLoopContext;
if (context instanceof EventLoopContext) {
eventLoopContext = (EventLoopContext) context;
final ContextInternal eventLoopContext;
if (context.isEventLoopContext()) {
eventLoopContext = context;
} else {
eventLoopContext = vertx.createEventLoopContext(context.nettyEventLoop(), context.workerPool(), context.classLoader());
}
Expand Down

0 comments on commit 820ca0b

Please sign in to comment.