refactoring

pull/6356/head
Nikita Koksharov 2 months ago
parent cb05221151
commit 7751f1b496

@ -29,7 +29,7 @@ import org.redisson.client.protocol.RedisStrictCommand;
import org.redisson.client.protocol.convertor.*; import org.redisson.client.protocol.convertor.*;
import org.redisson.client.protocol.decoder.*; import org.redisson.client.protocol.decoder.*;
import org.redisson.command.BatchPromise; import org.redisson.command.BatchPromise;
import org.redisson.command.CommandAsyncService; import org.redisson.command.CommandAsyncExecutor;
import org.redisson.command.CommandBatchService; import org.redisson.command.CommandBatchService;
import org.redisson.connection.MasterSlaveEntry; import org.redisson.connection.MasterSlaveEntry;
import org.redisson.misc.CompletableFutureWrapper; import org.redisson.misc.CompletableFutureWrapper;
@ -68,13 +68,13 @@ public class RedissonConnection extends AbstractRedisConnection {
private boolean closed; private boolean closed;
protected final Redisson redisson; protected final Redisson redisson;
CommandAsyncService executorService; CommandAsyncExecutor executorService;
private RedissonSubscription subscription; private RedissonSubscription subscription;
public RedissonConnection(RedissonClient redisson) { public RedissonConnection(RedissonClient redisson) {
super(); super();
this.redisson = (Redisson) redisson; this.redisson = (Redisson) redisson;
executorService = (CommandAsyncService) this.redisson.getCommandExecutor(); executorService = this.redisson.getCommandExecutor();
} }
@Override @Override
@ -1563,7 +1563,7 @@ public class RedissonConnection extends AbstractRedisConnection {
} }
protected void resetConnection() { protected void resetConnection() {
executorService = (CommandAsyncService) this.redisson.getCommandExecutor(); executorService = this.redisson.getCommandExecutor();
index = -1; index = -1;
indexToRemove.clear(); indexToRemove.clear();
} }

Loading…
Cancel
Save