debugging nats...
This commit is contained in:
parent
94694b2fee
commit
0c5ad7e692
@ -26,10 +26,11 @@ func New(natsc *nats.Conn) (*NatsAdapter, error) {
|
|||||||
return nil, fmt.Errorf("create jetstream: %w", err)
|
return nil, fmt.Errorf("create jetstream: %w", err)
|
||||||
}
|
}
|
||||||
jstream, err := jets.CreateStream(context.TODO(), jetstream.StreamConfig{
|
jstream, err := jets.CreateStream(context.TODO(), jetstream.StreamConfig{
|
||||||
Name: StreamName,
|
Name: StreamName,
|
||||||
Subjects: []string{fmt.Sprintf("%s.>", SubjectPrefix)},
|
Subjects: []string{fmt.Sprintf("%s.>", SubjectPrefix)},
|
||||||
Retention: jetstream.WorkQueuePolicy,
|
Retention: jetstream.WorkQueuePolicy,
|
||||||
Duplicates: DedupWindow,
|
Duplicates: DedupWindow,
|
||||||
|
AllowDirect: true,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("create js stream: %w", err)
|
return nil, fmt.Errorf("create js stream: %w", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user