refactoring

pull/3455/head
Nikita Koksharov 4 years ago
parent 0db60f7542
commit 7938d255b5

@ -361,9 +361,7 @@ abstract class ConnectionPool<T extends RedisConnection> {
connectionManager.getConnectionEventsHub().fireDisconnect(entry.getClient().getAddr());
connectionManager.newTimeout(new TimerTask() {
@Override
public void run(Timeout timeout) throws Exception {
connectionManager.newTimeout(timeout -> {
synchronized (entry) {
if (entry.getFreezeReason() != FreezeReason.RECONNECT
|| connectionManager.isShuttingDown()) {
@ -410,7 +408,6 @@ abstract class ConnectionPool<T extends RedisConnection> {
}
});
});
}
}, config.getFailedSlaveReconnectionInterval(), TimeUnit.MILLISECONDS);
}

Loading…
Cancel
Save