mirror of
https://gitee.com/jd-platform-opensource/jlog.git
synced 2024-11-29 18:38:06 +08:00
master 不使用etcd使用zookeeper版本
This commit is contained in:
parent
6a51bd2a67
commit
04794d0bf8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user