Skip to content

Commit ea3ef92

Browse files
authored
[IMPROVED] Change DefaultSubPendingMsgsLimit comment to reflect actual value (#998)
* Change DefaultSubPendingMsgsLimit comment to reflect actual value * Change constant to 500k
1 parent f038fb4 commit ea3ef92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nats.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5187,8 +5187,8 @@ func (s *Subscription) ClearMaxPending() error {
51875187

51885188
// Pending Limits
51895189
const (
5190-
// DefaultSubPendingMsgsLimit will be 512k msgs.
5191-
DefaultSubPendingMsgsLimit = 512 * 1024
5190+
// DefaultSubPendingMsgsLimit will be 500k msgs.
5191+
DefaultSubPendingMsgsLimit = 500_000
51925192
// DefaultSubPendingBytesLimit is 64MB
51935193
DefaultSubPendingBytesLimit = 64 * 1024 * 1024
51945194
)

0 commit comments

Comments
 (0)