Skip to content

Commit

Permalink
Merge pull request #6 from JheSue/pullSubscribe
Browse files Browse the repository at this point in the history
Pull subscribe
  • Loading branch information
cfsghost committed Feb 21, 2024
2 parents 11aac41 + 391d12f commit 11e0f7a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/system/internal/product.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ func (pm *ProductManager) PrepareSubscription(productName string, durable string
// Preparing push consumer
subject := fmt.Sprintf(productEventSubject, pm.domain, productName, "*")
cfg := &nats.ConsumerConfig{
Durable: durable,
Description: "Product Subscription",
DeliverSubject: nats.NewInbox(),
FilterSubject: subject,
AckPolicy: nats.AckAllPolicy,
MaxAckPending: 2000,
MaxDeliver: -1,
ReplayPolicy: nats.ReplayInstantPolicy,
Durable: durable,
Description: "Product Subscription",
FilterSubject: subject,
AckPolicy: nats.AckExplicitPolicy,
MaxAckPending: 2000,
MaxDeliver: -1,
ReplayPolicy: nats.ReplayInstantPolicy,
//DeliverSubject: nats.NewInbox(),
}

if startSeq > 0 {
Expand Down

0 comments on commit 11e0f7a

Please sign in to comment.