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