cckellogg commented on a change in pull request #586:
URL: https://github.com/apache/pulsar-client-go/pull/586#discussion_r685740573



##########
File path: pulsar/retry_router.go
##########
@@ -87,10 +87,15 @@ func (r *retryRouter) run() {
                        producer := r.getProducer()
 
                        msgID := rm.consumerMsg.ID()
-                       producer.SendAsync(context.Background(), 
&rm.producerMsg, func(MessageID, *ProducerMessage, error) {
-                               // TODO: if router produce failed, should Nack 
this message
-                               r.log.WithField("msgID", msgID).Debug("Sent 
message to RLQ")
-                               rm.consumerMsg.Consumer.AckID(msgID)
+                       producer.SendAsync(context.Background(), 
&rm.producerMsg, func(messageID MessageID,
+                               producerMessage *ProducerMessage, err error) {
+                               if err != nil {
+                                       r.log.WithError(err).WithField("msgID", 
msgID).Error("Sent message to RLQ")

Review comment:
       Should these log messages say different things? One case Nacks a message 
while the other Acks a message. 




-- 
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]


Reply via email to