GPrabhudas commented on a change in pull request #560:
URL: https://github.com/apache/pulsar-client-go/pull/560#discussion_r667629065
##########
File path: pulsar/producer_partition.go
##########
@@ -148,6 +179,26 @@ func newPartitionProducer(client *client, topic string,
options *ProducerOptions
return p, nil
}
+func (p *partitionProducer) sheduleDataKeyUpdate() {
+ for t := range p.dataKeyTicker.C {
+ p.log.Infof("Refreshing data key :%v", t)
+ err := p.updateDataKey()
+ if err != nil {
+ p.log.Errorf("Error refreshing data key : %v", err)
+ }
+ }
+}
+
+func (p *partitionProducer) updateDataKey() error {
Review comment:
I can move it to next MR.
Just ask: why this to be moved to another MR?
--
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]