fix: env init (#33)

This commit is contained in:
Lakhan Samani
2021-07-28 11:53:37 +05:30
committed by GitHub
parent 0fd4f18dc1
commit ea320c2401
11 changed files with 190 additions and 188 deletions

View File

@@ -53,7 +53,7 @@ func ClearStore() {
}
}
func init() {
func InitSession() {
if constants.REDIS_URL != "" {
log.Println("Using redis store to save sessions")
opt, err := redis.ParseURL(constants.REDIS_URL)