mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
add context deadline exceeded
This commit is contained in:
parent
ae78ea479e
commit
a3fff86ed8
@ -111,10 +111,11 @@ func main() {
|
||||
checks[index].flag = true
|
||||
}
|
||||
component.ErrorPrint(fmt.Sprintf("Starting %s failed:%v.", check.name, errs.Unwrap(err).Error()))
|
||||
if !strings.Contains(errs.Unwrap(err).Error(), "connection refused") &&
|
||||
!strings.Contains(errs.Unwrap(err).Error(), "timeout waiting") {
|
||||
component.ErrorPrint("Some components started failed!")
|
||||
os.Exit(-1)
|
||||
if strings.Contains(errs.Unwrap(err).Error(), "connection refused") ||
|
||||
strings.Contains(errs.Unwrap(err).Error(), "timeout") ||
|
||||
strings.Contains(errs.Unwrap(err).Error(), "context deadline exceeded") {
|
||||
component.ErrorPrint("try check connection")
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
checks[index].flag = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user