Skip to content

Commit

Permalink
incremented sequence instead of passing the last seen.
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Sep 29, 2022
1 parent b94c823 commit 5d6dbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nats-base-client/jsclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ export class JetStreamSubscriptionImpl extends TypedSubscription<JsMsg>
return false;
}
// reset the consumer
const seq = this.info?.ordered_consumer_sequence?.delivery_seq;
this._resetOrderedConsumer(seq || 1);
const seq = this.info?.ordered_consumer_sequence?.delivery_seq || 0;
this._resetOrderedConsumer(seq + 1);
// if we are ordered, we will reset the consumer and keep
// feeding the iterator or callback - we are not stopping
return false;
Expand Down

0 comments on commit 5d6dbd1

Please sign in to comment.