We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a5d911 commit 76ee74eCopy full SHA for 76ee74e
internal/pool/pool.go
@@ -165,7 +165,7 @@ func (p *ConnPool) NewConn(ctx context.Context) (*Conn, error) {
165
166
func (p *ConnPool) newConn(ctx context.Context, pooled bool) (*Conn, error) {
167
p.connsMu.Lock()
168
- if p.cfg.PoolSizeStrict && len(p.conns) >= p.poolSize {
+ if p.cfg.PoolSizeStrict && len(p.conns) >= p.cfg.PoolSize {
169
p.connsMu.Unlock()
170
return nil, ErrPoolExhausted
171
}
0 commit comments