From a5d6a4d0136c03996fa50851d6ed67ecf0de6945 Mon Sep 17 00:00:00 2001 From: ArtoLord Date: Thu, 11 Apr 2024 14:15:17 +0300 Subject: [PATCH] Fix formatting --- .../src/main/java/ai/lzy/env/base/DockerEnvDescription.java | 6 ++---- .../src/main/java/ai/lzy/env/base/DockerEnvironment.java | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvDescription.java b/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvDescription.java index 9835b9bdf..74d5d869f 100644 --- a/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvDescription.java +++ b/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvDescription.java @@ -14,13 +14,11 @@ public record DockerEnvDescription( List mounts, boolean needGpu, List envVars, // In format = - @Nullable - String networkMode, + @Nullable String networkMode, DockerClientConfig dockerClientConfig, String user, Set allowedPlatforms, // In format os/arch like "linux/amd64". Empty means all are allowed - @Nullable - Long memLimitMb + @Nullable Long memLimitMb ) { public static Builder newBuilder() { diff --git a/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvironment.java b/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvironment.java index 203476a4b..1a5e58508 100644 --- a/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvironment.java +++ b/lzy/execution-env/src/main/java/ai/lzy/env/base/DockerEnvironment.java @@ -384,7 +384,8 @@ private boolean isOomKilled() { var killed = client.inspectContainerCmd(containerId) .exec() - .getState().getOOMKilled(); + .getState() + .getOOMKilled(); if (killed != null) { return killed;