Skip to content

Commit 837975a

Browse files
committed
do not error on missing a heartbeat
Signed-off-by: Robert Landers <landers.robert@gmail.com>
1 parent 37e6b8f commit 837975a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/lib/consumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func BuildConsumer(stream jetstream.Stream, ctx context.Context, config *config.
2525
panic(err)
2626
}
2727

28-
iter, err := consumer.Messages(jetstream.PullMaxMessages(1))
28+
iter, err := consumer.Messages(jetstream.PullMaxMessages(1), jetstream.WithMessagesErrOnMissingHeartbeat(false))
2929
if err != nil {
3030
panic(err)
3131
}

0 commit comments

Comments
 (0)