-
Notifications
You must be signed in to change notification settings - Fork 287
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
Using store_offset
with OwnedMessage
#368
Comments
IMO ideally |
If you have a minute, #376 should do what you need! |
I would like to use the
Consumer::store_offset
interface to update the offset asynchronously after a message has been fully processed. Currently, this interface takes aBorrowedMessage
parameter, but I have not figured a way to use this type due to needing a static lifetime on the async block. I could detach the borrowed message into anOwnedMessage
to satisfy the static lifetime requirement, butstore_offset
takes aBorrowedMessage
parameter and there is no way to produce one from anOwnedMessage
. Even if this was possible, it is far from ideal, asstore_offset
only actually requires the topic, partition, and offset data, and storing the entire message just to access those is rather inefficient.Is there another way to achieve this process?
The text was updated successfully, but these errors were encountered: