This commit is contained in:
Will Assis
2025-12-02 14:51:09 -03:00
parent 49b3413c04
commit 8212473330
+2 -2
View File
@@ -96,7 +96,7 @@ func NewBackend(opts BackendOptions) (Backend, error) {
pollingInterval: opts.PollingInterval,
watchBufferSize: opts.WatchBufferSize,
storageMetrics: opts.storageMetrics,
bulkLock: resource.NewBulkLock(),
bulkLock: &bulkLock{running: make(map[string]bool)},
simulatedNetworkLatency: opts.SimulatedNetworkLatency,
lastImportTimeMaxAge: opts.LastImportTimeMaxAge,
}, nil
@@ -122,7 +122,7 @@ type backend struct {
dbProvider db.DBProvider
db db.DB
dialect sqltemplate.Dialect
bulkLock *resource.BulkLock
bulkLock *bulkLock
// watch streaming
//stream chan *resource.WatchEvent