From 8bf76a4a6c696328be9523df4e068283060c8676 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Tue, 27 Dec 2022 13:39:09 +0100 Subject: [PATCH] REDIS_CONNECTION_STRING as env --- persistence.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence.go b/persistence.go index 045da29..9e2a8f7 100644 --- a/persistence.go +++ b/persistence.go @@ -25,7 +25,7 @@ func newPool() *redis.Pool { // Dial is an application supplied function for creating and // configuring a connection. Dial: func() (redis.Conn, error) { - c, err := redis.Dial("tcp", ":6379") + c, err := redis.Dial("tcp", getenv("REDIS_CONNECTION_STRING", ":6379")) if err != nil { panic(err.Error()) }