mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
refactor: unified naming for module startup functions.
This commit is contained in:
parent
b6759fe604
commit
3bb25c9cdd
@ -15,7 +15,6 @@
|
|||||||
package zookeeper
|
package zookeeper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@ -43,13 +42,13 @@ func NewZookeeperDiscoveryRegister(zkConf *config.Zookeeper) (discoveryregistry.
|
|||||||
// openkeeper.WithLogger(log.NewZkLogger()),
|
// openkeeper.WithLogger(log.NewZkLogger()),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
uriFormat := "address:%s, username:%s, password:%s, schema:%s."
|
//uriFormat := "address:%s, username:%s, password:%s, schema:%s."
|
||||||
errInfo := fmt.Sprintf(uriFormat,
|
//errInfo := fmt.Sprintf(uriFormat,
|
||||||
zkConf.ZkAddr,
|
// zkConf.ZkAddr,
|
||||||
zkConf.Username,
|
// zkConf.Username,
|
||||||
zkConf.Password,
|
// zkConf.Password,
|
||||||
zkConf.Schema)
|
// zkConf.Schema)
|
||||||
return nil, errs.WrapMsg(err, errInfo)
|
return nil, errs.Wrap(err)
|
||||||
}
|
}
|
||||||
return zk, nil
|
return zk, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user