Repair logic

This commit is contained in:
Ben Sarmiento
2024-01-14 12:37:37 +01:00
parent 343a3218eb
commit 6a5bc79852
4 changed files with 48 additions and 9 deletions

View File

@@ -28,6 +28,7 @@ type TorrentManager struct {
DownloadCache cmap.ConcurrentMap[string, *realdebrid.Download]
DownloadMap cmap.ConcurrentMap[string, *realdebrid.Download]
allAccessKeys mapset.Set[string]
forRepairs mapset.Set[string]
latestState *LibraryState
requiredVersion string
workerPool *ants.Pool
@@ -42,6 +43,7 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, p
Config: cfg,
Api: api,
allAccessKeys: mapset.NewSet[string](),
forRepairs: mapset.NewSet[string](),
latestState: &LibraryState{},
requiredVersion: "11.01.2024",
workerPool: p,