Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Jul 12, 2024
1 parent d97b177 commit a6cc76e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected MLUndeployModelNodesResponse newResponse(
// when undeploy a undeployed model, the entry.getvalue() is null
if (entry.getValue() != null
&& (!modelWorkNodesBeforeRemoval.containsKey(entry.getKey())
|| modelWorkNodesBeforeRemoval.get(entry.getKey()).length < entry.getValue().length)) {
|| modelWorkNodesBeforeRemoval.get(entry.getKey()).length < entry.getValue().length)) {
modelWorkNodesBeforeRemoval.put(entry.getKey(), entry.getValue());
}
}
Expand Down Expand Up @@ -202,7 +202,10 @@ protected MLUndeployModelNodesResponse newResponse(
try {
boolean success = countDownLatch.await(1000, TimeUnit.MILLISECONDS);
if (!success) {
log.error("Failed to update model state as undeployed in model index after waiting for 1 second, please check model status manually");
log
.error(
"Failed to update model state as undeployed in model index after waiting for 1 second, please check model status manually"
);
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
Expand Down

0 comments on commit a6cc76e

Please sign in to comment.