forked from mirror/redis
internal/pool: cleanup
This commit is contained in:
parent
d264eb8e81
commit
aa5f492665
|
@ -178,7 +178,7 @@ func (p *ConnPool) tryDial() {
|
|||
return
|
||||
}
|
||||
|
||||
conn, err := p.opt.Dialer(nil)
|
||||
conn, err := p.opt.Dialer(context.Background())
|
||||
if err != nil {
|
||||
p.setLastDialError(err)
|
||||
time.Sleep(time.Second)
|
||||
|
|
Loading…
Reference in New Issue