mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 18:34:29 +08:00
fix: fix the flag
This commit is contained in:
parent
9d2497a8cb
commit
e99577b21f
@ -87,14 +87,14 @@ func main() {
|
|||||||
|
|
||||||
var err error
|
var err error
|
||||||
allSuccess := true
|
allSuccess := true
|
||||||
for _, check := range checks {
|
for i, check := range checks {
|
||||||
if !check.flag {
|
if !check.flag {
|
||||||
err = check.function()
|
err = check.function()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, err))
|
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, err))
|
||||||
allSuccess = false
|
allSuccess = false
|
||||||
} else {
|
} else {
|
||||||
check.flag = true
|
checks[i].flag = true
|
||||||
component.SuccessPrint(fmt.Sprintf("%s connected successfully", check.name))
|
component.SuccessPrint(fmt.Sprintf("%s connected successfully", check.name))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user