Skip to content

Commit

Permalink
Fix leftover change from debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
  • Loading branch information
piotrpio committed Oct 12, 2023
1 parent 07328c7 commit 79f1255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jetstream/ordered.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (c *orderedConsumer) Consume(handler MessageHandler, opts ...PullConsumeOpt
if c.withStopAfter {
select {
case c.stopAfter = <-c.stopAfterMsgsLeft:
case <-time.After(1 * time.Second):
default:
}
if c.stopAfter <= 0 {
sub.Stop()
Expand Down

0 comments on commit 79f1255

Please sign in to comment.