Skip to content

Commit

Permalink
Fix incorrect example in jetstream README. (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanz authored Jun 7, 2023
1 parent d2c31e4 commit 2570703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jetstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ in the buffer.

```go
// a maximum of 10 messages or 1024 bytes will be stored in memory (whichever is encountered first)
iter, _ := cons.Messages(WithMessagesMaxMessages(10), WithMessagesMaxBytes(1024))
iter, _ := cons.Messages(jetstream.PullMaxMessages(10), jetstream.PullMaxBytes(1024))
```

`Messages()` exposes the following options:
Expand Down

0 comments on commit 2570703

Please sign in to comment.