Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove error check after result is obtained #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

popeliv
Copy link

@popeliv popeliv commented Sep 4, 2024

Fixes #199.

It looks like what was happening here is that the context was getting cancelled while the goroutine execution was between lines 148 and 152.

After the result gets sent on rowsChan, the QueryContext function returns before line 153 is reached and errorChan gets closed.

I don't know how write a test to reproduce this bug, but according to the issue, line 153 was causing the panic so this should fix it.

Apart from that every test still passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QueryContext raises panic: send on closed channel
1 participant