nicoloboschi commented on code in PR #15372:
URL: https://github.com/apache/pulsar/pull/15372#discussion_r861577405
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/PulsarChannelInitializer.java:
##########
@@ -59,7 +59,8 @@ public class PulsarChannelInitializer extends
ChannelInitializer<SocketChannel>
// This cache is used to maintain a list of active connections to iterate
over them
// We keep weak references to have the cache to be auto cleaned up when
the connections
// objects are GCed.
- private final Cache<SocketAddress, ServerCnx> connections =
Caffeine.newBuilder()
+ // protected for test.
Review Comment:
you can add @VisibleForTesting annotation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]