mirror of
https://github.com/grassrootseconomics/eth-tracker.git
synced 2026-05-18 18:55:19 +02:00
fix: remove wide jetstream dedup window. Now reduced to 1 minute.
* closes #39
This commit is contained in:
@@ -15,7 +15,6 @@ type (
|
||||
JetStreamOpts struct {
|
||||
Logg *slog.Logger
|
||||
Endpoint string
|
||||
DedupDuration time.Duration
|
||||
PersistDuration time.Duration
|
||||
}
|
||||
|
||||
@@ -53,7 +52,7 @@ func NewJetStreamPub(o JetStreamOpts) (Pub, error) {
|
||||
MaxAge: o.PersistDuration,
|
||||
Storage: nats.FileStorage,
|
||||
Subjects: streamSubjects,
|
||||
Duplicates: o.DedupDuration,
|
||||
Duplicates: time.Minute,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user