refactor: unified naming for module startup functions.

This commit is contained in:
Gordon 2024-03-19 17:01:50 +08:00
parent b6759fe604
commit 3bb25c9cdd

View File

@ -15,7 +15,6 @@
package zookeeper
import (
"fmt"
"os"
"strings"
"time"
@ -43,13 +42,13 @@ func NewZookeeperDiscoveryRegister(zkConf *config.Zookeeper) (discoveryregistry.
// openkeeper.WithLogger(log.NewZkLogger()),
)
if err != nil {
uriFormat := "address:%s, username:%s, password:%s, schema:%s."
errInfo := fmt.Sprintf(uriFormat,
zkConf.ZkAddr,
zkConf.Username,
zkConf.Password,
zkConf.Schema)
return nil, errs.WrapMsg(err, errInfo)
//uriFormat := "address:%s, username:%s, password:%s, schema:%s."
//errInfo := fmt.Sprintf(uriFormat,
// zkConf.ZkAddr,
// zkConf.Username,
// zkConf.Password,
// zkConf.Schema)
return nil, errs.Wrap(err)
}
return zk, nil
}