refactoring

pull/2152/head
Nikita Koksharov 6 years ago
parent 336e5f18e2
commit ad03cba3fa

@ -177,14 +177,12 @@ public class ConnectionWatchdog extends ChannelInboundHandlerAdapter {
return;
}
log.debug("blocking queue sent " + connection);
ChannelFuture future = connection.send(currentCommand);
final CommandData<?, ?> cd = currentCommand;
future.addListener(new ChannelFutureListener() {
@Override
public void operationComplete(ChannelFuture future) throws Exception {
if (!future.isSuccess()) {
log.error("Can't reconnect blocking queue to new connection. {}", cd);
log.error("Can't reconnect blocking queue by command: {} using connection: {}", currentCommand, connection);
}
}
});

Loading…
Cancel
Save