Merge pull request #23 from hunterlong/dev

sleep for 30 seconds before db_conn
pull/26/head v0.29.9
Hunter Long 2018-07-12 12:26:52 -07:00 committed by GitHub
commit 1f0e58746d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)