fix: fix the get zkAddress error

This commit is contained in:
luhaoling 2024-01-30 09:54:07 +08:00
parent 0b9d677beb
commit a83d641a73

View File

@ -205,7 +205,7 @@ func checkRedis() (string, error) {
func checkZookeeper() (string, error) {
// Prioritize environment variables
address := getEnv("ZOOKEEPER_USERNAME", config.Config.Zookeeper.Username)
address := getEnv("ZOOKEEPER_ADDRESS", strings.Join(config.Config.Zookeeper.ZkAddr, ","))
zk := &component.Zookeeper{
Schema: getEnv("ZOOKEEPER_SCHEMA", "digest"),