提交 179c0c83 编写于 作者: N Nikita Koksharov

refactoring

上级 d10ff3c7
......@@ -493,7 +493,7 @@ public class RedissonClusterConnection extends RedissonConnection implements Red
};
for (Entry<MasterSlaveEntry, List<byte[]>> entry : range2key.entrySet()) {
CommandBatchService es = new CommandBatchService(executorService.getConnectionManager());
CommandBatchService es = new CommandBatchService(executorService);
for (byte[] key : entry.getValue()) {
es.writeAsync(entry.getKey(), null, command, key);
}
......
......@@ -498,7 +498,7 @@ public class RedissonClusterConnection extends RedissonConnection implements Red
};
for (Entry<MasterSlaveEntry, List<byte[]>> entry : range2key.entrySet()) {
CommandBatchService es = new CommandBatchService(executorService.getConnectionManager());
CommandBatchService es = new CommandBatchService(executorService);
for (byte[] key : entry.getValue()) {
es.writeAsync(entry.getKey(), null, command, key);
}
......
......@@ -547,7 +547,7 @@ public class RedissonClusterConnection extends RedissonConnection implements Def
};
for (Entry<MasterSlaveEntry, List<byte[]>> entry : range2key.entrySet()) {
CommandBatchService es = new CommandBatchService(executorService.getConnectionManager());
CommandBatchService es = new CommandBatchService(executorService);
for (byte[] key : entry.getValue()) {
es.writeAsync(entry.getKey(), null, command, key);
}
......
......@@ -547,7 +547,7 @@ public class RedissonClusterConnection extends RedissonConnection implements Def
};
for (Entry<MasterSlaveEntry, List<byte[]>> entry : range2key.entrySet()) {
CommandBatchService es = new CommandBatchService(executorService.getConnectionManager());
CommandBatchService es = new CommandBatchService(executorService);
for (byte[] key : entry.getValue()) {
es.writeAsync(entry.getKey(), null, command, key);
}
......
......@@ -547,7 +547,7 @@ public class RedissonClusterConnection extends RedissonConnection implements Def
};
for (Entry<MasterSlaveEntry, List<byte[]>> entry : range2key.entrySet()) {
CommandBatchService es = new CommandBatchService(executorService.getConnectionManager());
CommandBatchService es = new CommandBatchService(executorService);
for (byte[] key : entry.getValue()) {
es.writeAsync(entry.getKey(), null, command, key);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册