mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 10:00:24 +08:00
改进提示
This commit is contained in:
@@ -273,7 +273,7 @@ func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) err
|
|||||||
|
|
||||||
// 检查数据库
|
// 检查数据库
|
||||||
func (this *APINode) checkDB() error {
|
func (this *APINode) checkDB() error {
|
||||||
logs.Println("checking database connection ...")
|
logs.Println("[API_NODE]checking database connection ...")
|
||||||
|
|
||||||
db, err := dbs.Default()
|
db, err := dbs.Default()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -293,6 +293,7 @@ func (this *APINode) checkDB() error {
|
|||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
logs.Println("[API_NODE]database connected")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user