demery-pivotal commented on code in PR #7603:
URL: https://github.com/apache/geode/pull/7603#discussion_r855429262


##########
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/MessageDispatcher.java:
##########
@@ -83,7 +84,7 @@ public class MessageDispatcher extends LoggingThread {
   /**
    * Default value in milliseconds for waiting for re-authentication
    */
-  private static final long DEFAULT_RE_AUTHENTICATE_WAIT_TIME = 60 * 1000;
+  private static final long DEFAULT_RE_AUTHENTICATE_WAIT_TIME = 
Duration.of(60, SECONDS).toMillis();

Review Comment:
   Or: `Duration.ofMinutes(1).toMillis()`. Or declare the constant as a 
`Duration` and convert it only when passing it to something that needs millis.



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