cfmcgrady commented on code in PR #1877:
URL: 
https://github.com/apache/incubator-celeborn/pull/1877#discussion_r1315055215


##########
common/src/main/java/org/apache/celeborn/common/util/ShutdownHookManager.java:
##########
@@ -279,6 +286,10 @@ public void addShutdownHook(Runnable shutdownHook, int 
priority, long timeout, T
     hooks.add(new HookEntry(shutdownHook, priority, timeout, unit));
   }
 
+  public void updateTimeout(long timeout) {
+    hooks.forEach((hook) -> hook.setTimeout(timeout));

Review Comment:
   ```suggestion
       hooks.forEach(hook -> hook.setTimeout(timeout));
   ```



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