Skip to content

Commit

Permalink
[IMPROVED] New JetStream client docs: Fixed unit from kB to B in docu…
Browse files Browse the repository at this point in the history
…mentation of cons.FetchBytes (#1329)
  • Loading branch information
fabiant7t authored Jun 22, 2023
1 parent 429273a commit 576c3b7
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 @@ -381,7 +381,7 @@ if msgs.Error() != nil {
// handle error
}

// receive up to 1024kB of data
// receive up to 1024 B of data
msgs, _ := c.FetchBytes(1024)
for msg := range msgs.Messages() {
fmt.Printf("Received a JetStream message: %s\n", string(msg.Data()))
Expand Down

0 comments on commit 576c3b7

Please sign in to comment.