Skip to content

Commit 4b536e2

Browse files
committed
fix: 한 번에 하나의 스레드만 접근 가능하도록 하여 동시 초기화 방지
1 parent f917b39 commit 4b536e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/sopt/makers/global/util/EnvUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ public static String getWebhookUrl(String serviceType, String team, String stage
5151
return webhookUrl;
5252
}
5353

54-
5554
public static void setDotenv(Dotenv customDotenv) {
5655
dotenv = customDotenv;
5756
}
5857

5958

60-
private static Dotenv getDotenv() {
59+
private static synchronized Dotenv getDotenv() {
6160
if (dotenv == null) {
6261
dotenv = Dotenv.configure().load();
6362
}

0 commit comments

Comments
 (0)