Skip to content

Commit

Permalink
Make errors channel buffered inside query() (#1237)
Browse files Browse the repository at this point in the history
* make errors chan buffered

* remove unnecessary select in the beginning of acquire

* undo the actions of previous commit
  • Loading branch information
threadedstream authored Mar 18, 2024
1 parent 9491310 commit 94c6b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *connect) query(ctx context.Context, release func(*connect, error), quer
bufferSize = options.blockBufferSize
}
var (
errors = make(chan error)
errors = make(chan error, 1)
stream = make(chan *proto.Block, bufferSize)
)

Expand Down

0 comments on commit 94c6b19

Please sign in to comment.