Skip to content

Conversation

@dw-kihara
Copy link
Contributor

When flush_send_queue/1 returns {error, Reason, State} before entering loop/1, Reason from element(2, {error, Reason, State}) will passed to loop/1 causing badrecord eventually.
This pull request replaces the dangerous element/2 with case taking care of errors.

@sile
Copy link
Owner

sile commented Feb 15, 2025

Thank you for your PR.
I will review this PR today.

Copy link
Owner

@sile sile left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!
Although the CI has failed, I will fix that after merging this PR.

@sile sile merged commit e04789d into sile:master Feb 15, 2025
0 of 3 checks passed
@dw-kihara
Copy link
Contributor Author

Thank you!

@dw-kihara dw-kihara deleted the fix/badrecord_in_gen_cop_server branch February 15, 2025 04:14
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