mirror of https://github.com/statping/statping
sleep for 30 seconds before db_conn
parent
39caae4a75
commit
78fdca6430
|
@ -13,8 +13,8 @@ import (
|
|||
|
||||
func LoadConfig() (*types.Config, error) {
|
||||
if os.Getenv("DB_CONN") != "" {
|
||||
utils.Log(1, "DB_CONN environment variable was found")
|
||||
//time.Sleep(20 * time.Second)
|
||||
utils.Log(1, "DB_CONN environment variable was found, sleeping for 30 seconds")
|
||||
time.Sleep(30 * time.Second)
|
||||
return LoadUsingEnv()
|
||||
}
|
||||
Configs = new(types.Config)
|
||||
|
|
Loading…
Reference in New Issue