Skip to content

Commit

Permalink
Merge pull request #134 from ripienaar/misc_noack
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
ripienaar authored Oct 16, 2020
2 parents 002482f + 8aaab34 commit aef00ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package is the underlying library for the `nats` CLI, our Terraform provide

**NOTE**: This package is under development, while JetStream is in Preview we make no promises about the API stability of this package.

[![Go Doc](https://pkg.go.dev/badge/nats.io/jsm.go)](https://pkg.go.dev/nats.io/jsm.go)
[![Go Doc](https://pkg.go.dev/badge/github.com/nats-io/jsm.go)](https://pkg.go.dev/github.com/nats-io/jsm.go)

## Features

Expand Down Expand Up @@ -205,7 +205,7 @@ schemaType, _ := api.SchemaTypeForMessage(m.Data)
schema, _ := api.Schema(schemaType)
```
Several other Schema related helpers exist to search Schemas, fine URLs and more. See the `api` [![Reference](https://pkg.go.dev/badge/nats.io/jsm.go/api)](https://pkg.go.dev/github.com/nats-io/jsm.go/api).
Several other Schema related helpers exist to search Schemas, fine URLs and more. See the `api` [![Reference](https://pkg.go.dev/badge/github.com/nats.io/jsm.go/api)](https://pkg.go.dev/github.com/nats-io/jsm.go/api).
### Parsing Message Content
Expand Down
2 changes: 0 additions & 2 deletions stream_pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ func (p *StreamPager) NextMsg(ctx context.Context) (msg *nats.Msg, last bool, er

select {
case msg := <-p.q:
msg.Ack()
p.seen++

return msg, p.seen == p.pageSize, nil
Expand All @@ -141,7 +140,6 @@ func (p *StreamPager) NextMsg(ctx context.Context) (msg *nats.Msg, last bool, er

func (p *StreamPager) createConsumer() error {
cops := []ConsumerOption{
AcknowledgeExplicit(),
DurableName(fmt.Sprintf("jsm_stream_pager_%d%d", os.Getpid(), time.Now().UnixNano())),
}

Expand Down

0 comments on commit aef00ea

Please sign in to comment.