mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the get zkAddress error
This commit is contained in:
parent
0b9d677beb
commit
a83d641a73
@ -205,7 +205,7 @@ func checkRedis() (string, error) {
|
|||||||
func checkZookeeper() (string, error) {
|
func checkZookeeper() (string, error) {
|
||||||
// Prioritize environment variables
|
// Prioritize environment variables
|
||||||
|
|
||||||
address := getEnv("ZOOKEEPER_USERNAME", config.Config.Zookeeper.Username)
|
address := getEnv("ZOOKEEPER_ADDRESS", strings.Join(config.Config.Zookeeper.ZkAddr, ","))
|
||||||
|
|
||||||
zk := &component.Zookeeper{
|
zk := &component.Zookeeper{
|
||||||
Schema: getEnv("ZOOKEEPER_SCHEMA", "digest"),
|
Schema: getEnv("ZOOKEEPER_SCHEMA", "digest"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user