removed redundant var block
This commit is contained in:
parent
3df97fea4d
commit
fe2d43a025
1 changed files with 1 additions and 6 deletions
|
@ -36,12 +36,7 @@ func (d *driver) New(conf *config.Storage) storage.Pool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeDialFunc(conf *config.Storage) func() (redis.Conn, error) {
|
func makeDialFunc(conf *config.Storage) func() (redis.Conn, error) {
|
||||||
return func() (redis.Conn, error) {
|
return func() (conn redis.Conn, err error) {
|
||||||
var (
|
|
||||||
conn redis.Conn
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
|
|
||||||
if conf.ConnTimeout != nil {
|
if conf.ConnTimeout != nil {
|
||||||
conn, err = redis.DialTimeout(
|
conn, err = redis.DialTimeout(
|
||||||
conf.Network,
|
conf.Network,
|
||||||
|
|
Loading…
Add table
Reference in a new issue