Technoboy- commented on code in PR #21144:
URL: https://github.com/apache/pulsar/pull/21144#discussion_r1319279286
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionPool.java:
##########
@@ -165,8 +165,12 @@ private static AddressResolver<InetSocketAddress>
createAddressResolver(ClientCo
private static final Random random = new Random();
+ public int genRandomKeyToSelectCon() {
+ return random.nextInt(maxConnectionsPerHosts);
Review Comment:
return signSafeMod(random.nextInt(), maxConnectionsPerHosts);
--
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]