mirror of
https://github.com/redis/go-redis.git
synced 2025-07-22 10:01:50 +03:00
Minor. Report rate-limiter errors correctly.
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user