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