MCPcopy
hub / github.com/nats-io/nats.go / resetPendingMsgs

Method resetPendingMsgs

jetstream/pull.go:431–434  ·  view source on GitHub ↗

resetPendingMsgs resets pending message count and byte count to the values set in consumeOpts lock should be held before calling this method

()

Source from the content-addressed store, hash-verified

429// to the values set in consumeOpts
430// lock should be held before calling this method
431func (s *pullSubscription) resetPendingMsgs() {
432 s.pending.msgCount = s.consumeOpts.MaxMessages
433 s.pending.byteCount = s.consumeOpts.MaxBytes
434}
435
436// decrementPendingMsgs decrements pending message count and byte count
437// lock should be held before calling this method

Callers 1

ConsumeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected