-
Notifications
You must be signed in to change notification settings - Fork 230
Fix default rabbit timestamp #2226
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
T 8000 he reason will be displayed to describe this comment to others. Learn more.
I don't think, that we should impl this logic everywhere
Please, move it to producer._publish
method – https://github.com/ag2ai/faststream/blob/main/faststream/rabbit/publisher/producer.py#L224
done |
Great, thank you! |
Description
The docstring for
RabbitBroker
suggests thattimestamp: Message publish timestamp. Generated automatically if not present.
, however in fact it is not sinceaio_pika.message.encode_timestamp
doesn't do anything withNone
s.Fixing this annoyance here.
Fixes #2225
Type of change
Please delete options that are not relevant.
Checklist
scripts/lint.sh
shows no errors)scripts/test-cov.sh
scripts/static-analysis.sh