Skip to content

Commit

Permalink
[IMPROVED] Minor grammar tweaks (#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrake authored Oct 12, 2023
1 parent 26fa0a9 commit e4ae318
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 @@ -241,7 +241,7 @@ fmt.Println(cachedInfo.Config.Name)
Only pull consumers are supported in `jetstream` package. However, unlike the
JetStream API in `nats` package, pull consumers allow for continuous message
retrieval (similarly to how `nats.Subscribe()` works). Because of that, push
consumers can be easily replace by pull consumers for most of the use cases.
consumers can be easily replaced by pull consumers for most of the use cases.

### Consumers management

Expand Down Expand Up @@ -273,7 +273,7 @@ cons2 := js.CreateOrUpdateConsumer(ctx, "ORDERS", jetstream.ConsumerConfig{
})

// consumers can be updated
// an error will be returned if consumer with given name does not exists
// an error will be returned if consumer with given name does not exist
// or an illegal property is to be updated (e.g. AckPolicy)
updated, _ := js.UpdateConsumer(ctx, "ORDERS", jetstream.ConsumerConfig{
AckPolicy: jetstream.AckExplicitPolicy,
Expand Down

0 comments on commit e4ae318

Please sign in to comment.