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

fix: encode/decode bytes/HexBytes recursively in messages #51

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

mikeshultz
Copy link
Contributor

What I did

Made the message encoding/decoding in middleware recurisve, lest any mildly complex messages with bytes in them break the whole thing.

How I did it

How to verify it

Checklist

  • Passes all linting checks (pre-commit and CI jobs)
  • New test cases have been added and are passing
  • Documentation has been updated
  • PR title follows Conventional Commit standard (will be automatically included in the changelog)

@mikeshultz mikeshultz added the bug Something isn't working label Jan 10, 2024
@mikeshultz mikeshultz requested a review from fubuloubu January 10, 2024 01:30
@mikeshultz mikeshultz self-assigned this Jan 10, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Although I believe generally middlewares aren't suppose to produce errors per the taskiq documentation, this seems fine because it should be caught if it happens

@mikeshultz mikeshultz merged commit 48df76b into main Jan 10, 2024
26 checks passed
@mikeshultz mikeshultz deleted the fix/message-encoding branch January 10, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants