REDIS_CONNECTION_STRING as env
This commit is contained in:
parent
15a2827afe
commit
8bf76a4a6c
|
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue