mirror of
https://github.com/redis/go-redis.git
synced 2025-04-19 07:22:17 +03:00
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…
x
Reference in New Issue
Block a user