diff --git a/worker/src/main/java/com/jd/platform/jlog/worker/config/EtcdStarter.java b/worker/src/main/java/com/jd/platform/jlog/worker/config/EtcdStarter.java index 67aac4a..5a514a0 100644 --- a/worker/src/main/java/com/jd/platform/jlog/worker/config/EtcdStarter.java +++ b/worker/src/main/java/com/jd/platform/jlog/worker/config/EtcdStarter.java @@ -50,8 +50,10 @@ public class EtcdStarter { scheduledExecutorService.scheduleAtFixedRate(() -> { try { - configCenter.putAndGrant(buildKey(), buildValue(), 8); - configCenter.putAndGrant(buildSecondKey(), buildValue(), 8); + //configCenter.putAndGrant(buildKey(), buildValue(), 8); + //configCenter.putAndGrant(buildSecondKey(), buildValue(), 8); + configCenter.put(buildKey(), buildValue()); + configCenter.put(buildSecondKey(), buildValue()); } catch (Exception e) { //do nothing e.printStackTrace();