Skip to content

Commit

Permalink
[FIX] formatting on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Jan 18, 2022
1 parent c3c9711 commit 8d14de2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jetstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ message's reply subject. This metadata includes:
should be resent.
- `working()` - informs the server that you are still working on the message
and thus prevent receiving the message again as a redelivery.
- `term()` - specifies that you failed to process the message and instructs the
server to not send it again (to any consumer).
- `term()` - specifies that you failed to process the message and instructs
the server to not send it again (to any consumer).

If you implement a standard NATS subscription to process your JetStream
messages, you can use `toJsMsg()` to convert a message. Note that subscriptions
Expand Down
4 changes: 3 additions & 1 deletion nats-base-client/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export function StringCodec(): Codec<string> {
};
}

export function JSONCodec<T = unknown>(reviver? :(this: any, key: string, value: any) => any): Codec<T> {
export function JSONCodec<T = unknown>(
reviver?: (this: any, key: string, value: any) => any,
): Codec<T> {
return {
encode(d: T): Uint8Array {
try {
Expand Down

0 comments on commit 8d14de2

Please sign in to comment.