labuladong commented on code in PR #904:
URL: https://github.com/apache/pulsar-client-go/pull/904#discussion_r1044091617
##########
pulsar/consumer_partition.go:
##########
@@ -112,6 +112,13 @@ type partitionConsumerOpts struct {
maxPendingChunkedMessage int
expireTimeOfIncompleteChunk time.Duration
autoAckIncompleteChunk bool
+ // int failover mode, this callback will be called when consumer change
+ consumerEventListener ConsumerEventListener
+}
+
+type ConsumerEventListener interface {
+ BecameActive(consumer Consumer, partition int32)
Review Comment:
Hi @dfarr, thanks for your suggestion. I forgot that we cannot get topic
name from `Consumer` in Go client.
--
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]