Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Apr 5, 2024
1 parent e78bfed commit df87559
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,10 +798,10 @@ You also need to think about how you will [track the consumer offset](https://ww
try {
await handleMessage(content);
await updateOffset('/my-queue', currentOffset);
ackOrNack();
} catch (err) {
await handleError('/my-queue', currentOffset);
ackOrNack(err);
await handleError('/my-queue', currentOffset, err);
} finally {
ackOrNack(); // Streams do not support nack so do not pass the error argument
}
});
```
Expand Down

0 comments on commit df87559

Please sign in to comment.