mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
This is a regression introduced in PR #6005 / commit
f7b2e79fdc
This commit is contained in:
parent
bee7cce081
commit
cd290d2d05
@ -207,6 +207,9 @@ func NewModel(cfg config.Wrapper, id protocol.DeviceID, clientName, clientVersio
|
|||||||
fmut: sync.NewRWMutex(),
|
fmut: sync.NewRWMutex(),
|
||||||
pmut: sync.NewRWMutex(),
|
pmut: sync.NewRWMutex(),
|
||||||
}
|
}
|
||||||
|
for devID := range cfg.Devices() {
|
||||||
|
m.deviceStatRefs[devID] = stats.NewDeviceStatisticsReference(m.db, devID.String())
|
||||||
|
}
|
||||||
m.Add(m.progressEmitter)
|
m.Add(m.progressEmitter)
|
||||||
scanLimiter.setCapacity(cfg.Options().MaxConcurrentScans)
|
scanLimiter.setCapacity(cfg.Options().MaxConcurrentScans)
|
||||||
cfg.Subscribe(m)
|
cfg.Subscribe(m)
|
||||||
|
Loading…
Reference in New Issue
Block a user