mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 21:32:15 +08:00
fix bug: component check
This commit is contained in:
parent
dc86d0c9d8
commit
f81fd99dc9
@ -163,13 +163,13 @@ func checkRedis(config *config.GlobalConfig) error {
|
|||||||
// checkMinio checks the MinIO connection
|
// checkMinio checks the MinIO connection
|
||||||
func checkMinio(config *config.GlobalConfig) error {
|
func checkMinio(config *config.GlobalConfig) error {
|
||||||
if strings.Contains(config.Object.ApiURL, "127.0.0.1") {
|
if strings.Contains(config.Object.ApiURL, "127.0.0.1") {
|
||||||
return errs.Wrap(errApiURL, "config.Object.ApiURL: "+config.Object.ApiURL)
|
return errApiURL
|
||||||
}
|
}
|
||||||
if config.Object.Enable != "minio" {
|
if config.Object.Enable != "minio" {
|
||||||
return errs.Wrap(errMinioNotEnabled, "config.Object.Enable: "+config.Object.Enable)
|
return errMinioNotEnabled
|
||||||
}
|
}
|
||||||
if strings.Contains(config.Object.Minio.Endpoint, "127.0.0.1") {
|
if strings.Contains(config.Object.Minio.Endpoint, "127.0.0.1") {
|
||||||
return errs.Wrap(errSignEndPoint, "config.Object.Minio.Endpoint: "+config.Object.Minio.Endpoint)
|
return errSignEndPoint
|
||||||
}
|
}
|
||||||
|
|
||||||
minio := &component.Minio{
|
minio := &component.Minio{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user