Add pull subscribe #1
|
@ -52,6 +52,7 @@ func (js JetStream) PullSubscribe(stream, subject, durable, consumer string) (*n
|
|||
if con == nil {
|
||||
info, err := js.instance.AddConsumer(stream, &nats.ConsumerConfig{
|
||||
Durable: durable,
|
||||
AckPolicy: nats.AckExplicitPolicy,
|
||||
})
|
||||
if err == nil {
|
||||
fmt.Println("CONSUMER INFO", info)
|
||||
|
|
Loading…
Reference in New Issue