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

Add Timestamp to the OwnedDeliveryResult tuple. #555

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gorzell
Copy link

@gorzell gorzell commented Mar 9, 2023

Note: This is an API breaking change.

Currently the Timestamp value is being dropped as part of the conversion from BorrowedMessage to OwnedDeliveryResult, however this value is updated once the message has been published and callers should have access to the updated value. As far as I can tell, this is the only other value that is updated as part of publishing.

An alternative to expanding the tuple would be to replace it with a struct. This is a bit more disruptive now, but would make adding values in the future a backwards compatible change. So it depends how likely it is that there will be further new values.

This could also be done in a way that isn't a breaking change, but would involve duplicating functions and copying some types, i.e. DeliveryFuture. It doesn't seem like that level of complexity is justified given the pre 1.0 status.

**Note:** This is an API breaking change.

Currently the `Timestamp` value is being dropped as part of the
conversion from `BorrowedMessage` to `OwnedDeliveryResult`, however this
value is updated once the message has been published and callers should
have access to the updated value. As far as I can tell, this is the
**only** other value that is updated as part of publishing.

An alternative to expanding the tuple would be to replace it with a
struct. This is a bit more disruptive now, but would making adding
values in the future a backwards compatible change. So it depends how
likely it is that there will be further new values.

This could also be done in a way that isn't a breaking change, but would
involve duplicating functions and copying some types, i.e.
`DeliveryFuture`. It doesn't seem like that level of complexity is
justified given the pre 1.0 status.
@gorzell
Copy link
Author

gorzell commented Nov 16, 2023

Any chance someone could take a look at this? I would like get our production systems off my fork if at all possible.

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.

None yet

1 participant