Skip to content

Commit

Permalink
Merge pull request #22 from igorwwwwwwwwwwwwwwwwwwww/patch-1
Browse files Browse the repository at this point in the history
Use redis.DialURL in workwebui cmd, to support passwords
  • Loading branch information
jnovak-stripe committed Oct 7, 2016
2 parents 8aaf018 + a562f12 commit ec82a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/workwebui/main.go
Expand Up @@ -55,7 +55,7 @@ func newPool(addr string, database int) *redis.Pool {
MaxIdle: 3,
IdleTimeout: 240 * time.Second,
Dial: func() (redis.Conn, error) {
return redis.Dial("tcp", addr, redis.DialDatabase(database))
return redis.DialURL(addr, redis.DialDatabase(database))
},
Wait: true,
}
Expand Down

0 comments on commit ec82a7b

Please sign in to comment.