Skip to content

Commit

Permalink
Fixes to jetstream/readme (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
wallyqs authored Jul 15, 2023
1 parent 49ae579 commit 79f5f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jetstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ js.DeleteStream(ctx, "ORDERS")
// list streams
streams := js.ListStreams(ctx)
var err error
for err != nil {
for err == nil {
select {
case s := <-streams.Info():
fmt.Println(s.Config.Name)
Expand All @@ -179,7 +179,7 @@ if err != nil && !errors.Is(err, jetstream.ErrEndOfData) {

// list stream names
names := js.StreamNames(ctx)
for err != nil {
for err == nil {
select {
case name := <-names.Name():
fmt.Println(name)
Expand Down

0 comments on commit 79f5f2f

Please sign in to comment.