REDIS_CONNECTION_STRING as env

This commit is contained in:
Joerg Lehmann 2022-12-27 13:39:09 +01:00
parent 15a2827afe
commit 8bf76a4a6c
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func newPool() *redis.Pool {
// Dial is an application supplied function for creating and // Dial is an application supplied function for creating and
// configuring a connection. // configuring a connection.
Dial: func() (redis.Conn, error) { Dial: func() (redis.Conn, error) {
c, err := redis.Dial("tcp", ":6379") c, err := redis.Dial("tcp", getenv("REDIS_CONNECTION_STRING", ":6379"))
if err != nil { if err != nil {
panic(err.Error()) panic(err.Error())
} }