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

Return errors from client.ConnectAndRead read loop #14

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

rolandcrosby
Copy link

Makes client.ConnectAndRead return an error if the read loop fails, so the caller can distinguish an orderly shutdown (triggered by context completion or the client shutdown channel) from an unexpected error.

Not sure if the c.logger.Error call should also be kept, I'm pretty new to Go so don't know what would be conventional here.

@ericvolp12
Copy link
Collaborator

Looks good! Thanks!

@ericvolp12 ericvolp12 merged commit 75fdbaa into bluesky-social:main Oct 22, 2024
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.

2 participants