Skip to content

Conversation

@kalleep
Copy link
Contributor

@kalleep kalleep commented Oct 9, 2025

PR Description

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

Send(context.Context, Entry) error
Recv(context.Context) (Entry, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the only possible error you can get here is when context is cancelled. So maybe we should return bool and treat is as continue sending / receiving when true or stream is closed / no more data when false.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we can go with bool. I was thinking that in the future this could change but currently we only need a signal that we should stop sending / receiving so bool is fine

@kalleep kalleep force-pushed the kalleep/loki-rec-safe-send branch from 36851ed to ac69b10 Compare October 10, 2025 06:56
@kalleep kalleep closed this Oct 23, 2025
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