新增etcd服务发现

This commit is contained in:
boyce
2024-04-18 18:50:12 +08:00
parent 0cf935ffa4
commit a26210f17f
10 changed files with 804 additions and 209 deletions

View File

@@ -156,7 +156,8 @@ func initNode(id string) {
nodeId = id
err := cluster.GetCluster().Init(GetNodeId(), Setup)
if err != nil {
log.Fatal("read system config is error ",log.ErrorAttr("error",err))
log.Error("Init cluster fail",log.ErrorAttr("error",err))
os.Exit(1)
}
err = initLog()