mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 10:40:41 -07:00
assign default to MaxAckPending when AckExplicit -or- AckAll, not just AckExplicit
This commit is contained in:
@@ -351,7 +351,7 @@ func (mset *stream) addConsumerWithAssignment(config *ConsumerConfig, oname stri
|
||||
config.MaxDeliver = -1
|
||||
}
|
||||
// Set proper default for max ack pending if we are ack explicit and none has been set.
|
||||
if config.AckPolicy == AckExplicit && config.MaxAckPending == 0 {
|
||||
if (config.AckPolicy == AckExplicit || config.AckPolicy == AckAll) && config.MaxAckPending == 0 {
|
||||
config.MaxAckPending = JsDefaultMaxAckPending
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user