HBASE-27271 Addendum use NettyFutureUtils

This commit is contained in:
Duo Zhang 2022-08-04 23:14:04 +08:00
parent 2dc26082be
commit 2ac5578730
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ class NettyRpcConnection extends RpcConnection {
p.addBefore(BufferCallBeforeInitHandler.NAME, readTimeoutHandlerName,
new ReadTimeoutHandler(RpcClient.DEFAULT_SOCKET_TIMEOUT_READ, TimeUnit.MILLISECONDS))
.addBefore(BufferCallBeforeInitHandler.NAME, null, chHandler);
connectionHeaderPromise.addListener(new FutureListener<Boolean>() {
NettyFutureUtils.addListener(connectionHeaderPromise, new FutureListener<Boolean>() {
@Override
public void operationComplete(Future<Boolean> future) throws Exception {
if (future.isSuccess()) {