shibd commented on code in PR #991:
URL: https://github.com/apache/pulsar-client-go/pull/991#discussion_r1145592045


##########
pulsar/consumer_partition.go:
##########
@@ -333,6 +335,7 @@ func newPartitionConsumer(parent Consumer, client *client, 
options *partitionCon
        }
        if pc.options.autoReceiverQueueSize {
                pc.currentQueueSize.Store(initialReceiverQueueSize)
+               
pc.client.memLimit.RegisterTrigger(receiverQueueShrinkMemThreshold, 
pc.shrinkReceiverQueueSize)

Review Comment:
   This threshold should be managed by the ·memory_limit_controller·, and we 
don't need to set it when we register trigger.
   
   



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