forked from mirror/redis
Minor. Report rate-limiter errors correctly.
This commit is contained in:
parent
70c4c19f1d
commit
5280246642
2
pool.go
2
pool.go
|
@ -119,7 +119,7 @@ func newConnPool(dial func() (*conn, error), opt *options) *connPool {
|
|||
func (p *connPool) new() (*conn, error) {
|
||||
if !p.rl.Check() {
|
||||
err := fmt.Errorf(
|
||||
"redis: you open connections too fast (last error: %s)",
|
||||
"redis: you open connections too fast (last error: %v)",
|
||||
p.lastDialErr,
|
||||
)
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue