forked from mirror/redis
upgrade golangci-lint to v1.39.0
Signed-off-by: monkey <golang@88.com>
This commit is contained in:
parent
085647a59e
commit
a2410beb43
|
@ -228,8 +228,7 @@ func (p *ConnPool) Get(ctx context.Context) (*Conn, error) {
|
||||||
return nil, ErrClosed
|
return nil, ErrClosed
|
||||||
}
|
}
|
||||||
|
|
||||||
err := p.waitTurn(ctx)
|
if err := p.waitTurn(ctx); err != nil {
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue