drpmma commented on code in PR #6116:
URL: https://github.com/apache/rocketmq/pull/6116#discussion_r1111385425


##########
remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java:
##########
@@ -95,7 +96,7 @@ public class NettyRemotingClient extends 
NettyRemotingAbstract implements Remoti
     private final ConcurrentHashMap<String /* cidr */, Bootstrap> bootstrapMap 
= new ConcurrentHashMap<>();
     private final ConcurrentMap<String /* addr */, ChannelWrapper> 
channelTables = new ConcurrentHashMap<>();
 
-    private final Timer timer = new Timer("ClientHouseKeepingService", true);
+    private final HashedWheelTimer timer = new HashedWheelTimer(r -> new 
Thread(r, "ClientHouseKeepingService"));

Review Comment:
   HashedWheelTimer is more accurate than java.util.Time.



-- 
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]

Reply via email to