mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-07 14:32:13 +08:00
fix bug: component check
This commit is contained in:
parent
9434530f69
commit
979913aa93
@ -80,7 +80,6 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
checks := []checkFunc{
|
checks := []checkFunc{
|
||||||
//{name: "Mysql", function: checkMysql},
|
//{name: "Mysql", function: checkMysql},
|
||||||
{name: "Mongo", function: checkMongo, config: conf},
|
{name: "Mongo", function: checkMongo, config: conf},
|
||||||
@ -134,6 +133,7 @@ var errMinioNotEnabled = errors.New("minio.Enable is not configured to use MinIO
|
|||||||
|
|
||||||
var errSignEndPoint = errors.New("minio.signEndPoint contains 127.0.0.1, causing issues with image sending")
|
var errSignEndPoint = errors.New("minio.signEndPoint contains 127.0.0.1, causing issues with image sending")
|
||||||
var errApiURL = errors.New("object.apiURL contains 127.0.0.1, causing issues with image sending")
|
var errApiURL = errors.New("object.apiURL contains 127.0.0.1, causing issues with image sending")
|
||||||
|
}
|
||||||
|
|
||||||
// checkMongo checks the MongoDB connection without retries
|
// checkMongo checks the MongoDB connection without retries
|
||||||
func checkMongo(config *config.GlobalConfig) error {
|
func checkMongo(config *config.GlobalConfig) error {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user