frankjkelly commented on issue #403: URL: https://github.com/apache/pulsar-client-go/issues/403#issuecomment-2162968162
> > pity there's no way to have a `defer` block where I could inspect the message ack state and ensure it is acked or nacked. I probably just need to rewrite my code to have all the ack/nack handling in one place. > > Does the [`redeliverUnacknowledgedMessages`](https://github.com/apache/pulsar/blob/59782b3c1f63baa68b2f5f33a33f1b00212159d7/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Consumer.java#L483-L489) feature work for you? The Go client currently doesn't have this feature. But for this case, it seems worth supporting it. WDYT? @frankjkelly @merlimat I'm open to suggestions - I prefer the idea of the client handling the logic (a timeout - say default 30 seconds - where unacked messages are redelivered to the consumers) but if it's something I need to do explicitly I guess that's fine too. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
