-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Issue #797: support auto-adding timestamp to pubsub messages. #809
Issue #797: support auto-adding timestamp to pubsub messages. #809
Conversation
This is cool :) Thx! |
@@ -113,6 +122,8 @@ def publish(self, message, **attrs): | |||
:rtype: str | |||
:returns: message ID assigned by the server to the published message | |||
""" | |||
if self.add_timestamp_to_messages: | |||
attrs['timestamp'] = '%sZ' % _NOW().isoformat() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@dhermes comments addressed, PTAL. |
LGTM. |
…tamp Issue #797: support auto-adding timestamp to pubsub messages.
See #797.