sleep for 30 seconds before db_conn

pull/23/head
Hunter Long 2018-07-12 12:25:35 -07:00
parent 39caae4a75
commit 78fdca6430
1 changed files with 2 additions and 2 deletions

View File

@ -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)