Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bughue committed Feb 21, 2024
1 parent 266d17e commit 557e34c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ public static void putConfig(String dataId, String content) {
ConfigurationFactory.getInstance().putConfig(dataId, content);

try {
countDownLatch.await(PUT_CONFIG_TIMEOUT, TimeUnit.MILLISECONDS);
boolean await = countDownLatch.await(PUT_CONFIG_TIMEOUT, TimeUnit.MILLISECONDS);
if(await){
LOGGER.info("putConfig ok, dataId={}", dataId);
}else {
LOGGER.error("putConfig fail, dataId={}", dataId);
}
} catch (InterruptedException e) {
throw new RuntimeException(e);
}

LOGGER.info("putConfig ok, dataId={}", dataId);
}
}

0 comments on commit 557e34c

Please sign in to comment.