mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-10 11:09:19 +08:00
etcd conf
This commit is contained in:
parent
a556cfcd40
commit
5d54225f9d
@ -139,8 +139,7 @@ func registerConf(key, conf string) {
|
||||
panic(err.Error())
|
||||
}
|
||||
//lease
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
ctx, _ := context.WithCancel(context.Background())
|
||||
resp, err := cli.Grant(ctx, 10)
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
@ -162,5 +161,7 @@ func RegisterConf() {
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
fmt.Println("start register", secretMD5)
|
||||
registerConf(GetPrefix(config.Config.Etcd.EtcdSchema, config.ConfName), string(confBytes))
|
||||
fmt.Println("etcd register conf ok")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user