Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Jan 16, 2023
1 parent e204d40 commit 7982181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/consumer.go
Expand Up @@ -3076,8 +3076,7 @@ func (o *consumer) getNextMsg() (*jsPubMsg, uint64, error) {
}
// Process redelivered messages before looking at possibly "skip list" (deliver last per subject)
if o.hasRedeliveries() {
dc := uint64(1)
var seq uint64
var seq, dc uint64
for seq = o.getNextToRedeliver(); seq > 0; seq = o.getNextToRedeliver() {
dc = o.incDeliveryCount(seq)
if o.maxdc > 0 && dc > o.maxdc {
Expand Down

0 comments on commit 7982181

Please sign in to comment.