gy-deng commented on code in PR #1410:
URL: https://github.com/apache/pulsar-client-go/pull/1410#discussion_r2348897643
##########
pulsar/consumer.go:
##########
@@ -183,6 +183,11 @@ type ConsumerOptions struct {
// processed. Default is 1 min. (See `Consumer.Nack()`)
NackRedeliveryDelay time.Duration
+ // NackPrecisionBit specifies the precision bit for nack redelivery
delay.
+ // This is used to trim the lower bits of the nack redelivery delay to
reduce memory usage.
+ // Default is 8 bits.
+ NackPrecisionBit int64
Review Comment:
I added the default value of `NackPrecisionBit` with reference to
`NackBackoffPolicy` and `ExpireTimeOfIncompletChunk`.
<img width="1214" height="1093" alt="image"
src="https://github.com/user-attachments/assets/1bf7e736-af61-4fa3-b02a-ed7daa9be40c"
/>
--
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]