add check consumer
This commit is contained in:
parent
941e4c5ca3
commit
fe6e8c2471
|
@ -53,7 +53,7 @@ func (js JetStream) PullSubscribe(stream, subject, durable, consumer string) (*n
|
|||
info, err := js.instance.AddConsumer(stream, &nats.ConsumerConfig{
|
||||
Durable: durable,
|
||||
})
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
fmt.Println("CONSUMER INFO", info)
|
||||
} else {
|
||||
fmt.Println("ADD CONSUMER ERROR", err)
|
||||
|
|
Loading…
Reference in New Issue