Skip to content

Commit

Permalink
Use redis.DialURL in workwebui cmd, to support passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
igorwwwwwwwwwwwwwwwwwwww authored Oct 6, 2016
1 parent 8aaf018 commit a562f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/workwebui/main.go
Original file line number Diff line number Diff line change
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 a562f12

Please sign in to comment.