master 不使用etcd使用zookeeper版本

This commit is contained in:
shenkaiwen5 2022-01-06 21:47:56 +08:00
parent 6a51bd2a67
commit 04794d0bf8

View File

@ -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();