Remove fixer concept
This commit is contained in:
@@ -40,11 +40,11 @@ type TorrentManager struct {
|
||||
|
||||
latestState *LibraryState
|
||||
|
||||
fixers cmap.ConcurrentMap[string, string] // trigger -> [command, id]
|
||||
repairTrigger chan *Torrent
|
||||
repairSet mapset.Set[*Torrent]
|
||||
repairRunning bool
|
||||
repairRunningMu sync.Mutex
|
||||
trashBin mapset.Set[string]
|
||||
}
|
||||
|
||||
// NewTorrentManager creates a new torrent manager
|
||||
@@ -71,10 +71,10 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, w
|
||||
latestState: &LibraryState{log: log},
|
||||
}
|
||||
|
||||
t.fixers = t.readFixersFromFile()
|
||||
t.trashBin = mapset.NewSet[string]()
|
||||
t.initializeDirectories()
|
||||
t.workerPool.Submit(func() {
|
||||
t.refreshTorrents(true)
|
||||
t.refreshTorrents()
|
||||
t.setNewLatestState(t.getCurrentState())
|
||||
t.StartRefreshJob()
|
||||
t.StartRepairJob()
|
||||
|
||||
Reference in New Issue
Block a user