Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jkaflik committed Jul 27, 2023
2 parents 1953f9c + c614aa5 commit 480735a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ func (ch *clickhouse) acquire(ctx context.Context) (conn *connect, err error) {
}
select {
case <-timer.C:
select {
case <-ch.open:
default:
}
return nil, ErrAcquireConnTimeout
case conn := <-ch.idle:
if conn.isBad() {
Expand Down

0 comments on commit 480735a

Please sign in to comment.