Add pull subscribe #1

Merged
namhq1989 merged 12 commits from add-pull-subscribe into master 2022-03-18 04:28:50 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit fe6e8c2471 - Show all commits

View File

@ -53,7 +53,7 @@ func (js JetStream) PullSubscribe(stream, subject, durable, consumer string) (*n
info, err := js.instance.AddConsumer(stream, &nats.ConsumerConfig{ info, err := js.instance.AddConsumer(stream, &nats.ConsumerConfig{
Durable: durable, Durable: durable,
}) })
if err != nil { if err == nil {
fmt.Println("CONSUMER INFO", info) fmt.Println("CONSUMER INFO", info)
} else { } else {
fmt.Println("ADD CONSUMER ERROR", err) fmt.Println("ADD CONSUMER ERROR", err)