Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion conn_process.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package clickhouse

import (
Expand Down Expand Up @@ -117,6 +116,11 @@ func (c *connect) process(ctx context.Context, on *onProcess) error {
select {
case <-ctx.Done():
c.cancel()
// Wait for goroutine to finish before returning
select {
case <-errCh:
case <-doneCh:
}
Comment on lines +119 to +123
Copy link

Copilot AI Oct 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'untill' to 'until' in the PR title.

Copilot uses AI. Check for mistakes.
return ctx.Err()

case err := <-errCh:
Expand Down