szetszwo commented on code in PR #1440:
URL: https://github.com/apache/ratis/pull/1440#discussion_r3163364609


##########
ratis-server/src/main/java/org/apache/ratis/server/impl/FollowerState.java:
##########
@@ -158,8 +158,8 @@ private void runImpl() {
         }
         synchronized (server) {
           if (roleChangeChecking(electionTimeout)) {
-            LOG.info("{}: change to CANDIDATE, lastRpcElapsedTime:{}, 
electionTimeout:{}",
-                this, lastRpcTime.elapsedTime(), electionTimeout);
+            LOG.info("{}: change to CANDIDATE, lastRpcElapsedTime:{}ms, 
electionTimeout:{}",

Review Comment:
   Before this change
   - electionTimeout is a TimeDuration in ms
   - elapsedTime() returns a TimeDuration in ns.
   
   So, I changed elapsedTime() to elapsedTimeMs() and added ms.



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