mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
fix: fix the minio nil error
This commit is contained in:
parent
a23ae2294d
commit
e33c66ca6c
@ -45,7 +45,7 @@ func NewZookeeperDiscoveryRegister() (discoveryregistry.SvcDiscoveryRegistry, er
|
|||||||
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,
|
||||||
config.Config.Zookeeper.ZkAddr,
|
config.Config.Zookeeper.ZkAddr,
|
||||||
config.Config.Zookeeper.Username,
|
config.Config.Zookeeper.Username,
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/IBM/sarama"
|
"github.com/IBM/sarama"
|
||||||
@ -125,7 +126,7 @@ func checkMinio() error {
|
|||||||
|
|
||||||
// Check if MinIO is enabled
|
// Check if MinIO is enabled
|
||||||
if config.Config.Object.Enable != "minio" {
|
if config.Config.Object.Enable != "minio" {
|
||||||
return nil
|
return errs.Wrap(errors.New("minio.Enable is empty"))
|
||||||
}
|
}
|
||||||
minio := &component.Minio{
|
minio := &component.Minio{
|
||||||
ApiURL: config.Config.Object.ApiURL,
|
ApiURL: config.Config.Object.ApiURL,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user