fix: fix the flag

pull/1872/head
luhaoling 2 years ago
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…
Cancel
Save