Skip to content

Commit 2e794ec

Browse files
author
Zhen Li
committed
Remove confusing use of EventExecutorGroup and reworded error message
1 parent 8ba0c41 commit 2e794ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

driver/src/main/java/org/neo4j/driver/internal/async/pool/NettyChannelTracker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import io.netty.channel.group.ChannelGroup;
2424
import io.netty.channel.group.DefaultChannelGroup;
2525
import io.netty.channel.pool.ChannelPoolHandler;
26-
import io.netty.util.concurrent.EventExecutorGroup;
26+
import io.netty.util.concurrent.EventExecutor;
2727

2828
import java.util.Map;
2929
import java.util.concurrent.ConcurrentHashMap;
@@ -47,9 +47,9 @@ public class NettyChannelTracker implements ChannelPoolHandler
4747
private final ChannelFutureListener closeListener = future -> channelClosed( future.channel() );
4848
private final ChannelGroup allChannels;
4949

50-
public NettyChannelTracker( MetricsListener metricsListener, EventExecutorGroup eventExecutorGroup, Logging logging )
50+
public NettyChannelTracker( MetricsListener metricsListener, EventExecutor eventExecutor, Logging logging )
5151
{
52-
this( metricsListener, new DefaultChannelGroup( "all-connections", eventExecutorGroup.next() ), logging );
52+
this( metricsListener, new DefaultChannelGroup( "all-connections", eventExecutor ), logging );
5353
}
5454

5555
public NettyChannelTracker( MetricsListener metricsListener, ChannelGroup channels, Logging logging )
@@ -134,8 +134,8 @@ public void prepareToCloseChannels()
134134
catch ( Throwable e )
135135
{
136136
// only logging it
137-
log.debug( "Failed to destruct Channel %s due to error %s. " +
138-
"It is safe to ignore this error as the channel will be closed despite if it is successfully destructed.", channel, e.getMessage() );
137+
log.debug( "Failed to prepare to close Channel %s due to error %s. " +
138+
"It is safe to ignore this error as the channel will be closed despite if it is successfully prepared to close or not.", channel, e.getMessage() );
139139
}
140140
}
141141
}

0 commit comments

Comments
 (0)