This commit is contained in:
Ben Sarmiento
2023-12-07 12:49:59 +01:00
parent caa42822ac
commit 42dce61529
3 changed files with 14 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ type TorrentManager struct {
Api *realdebrid.RealDebrid
DirectoryMap cmap.ConcurrentMap[string, cmap.ConcurrentMap[string, *Torrent]] // directory -> accessKey -> Torrent
DownloadCache cmap.ConcurrentMap[string, *realdebrid.Download]
accessKeySet *strset.Set
allAccessKeys *strset.Set
latestState *LibraryState
requiredVersion string
workerPool *ants.Pool
@@ -42,7 +42,7 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, p
t := &TorrentManager{
Config: cfg,
Api: api,
accessKeySet: set.NewStringSet(),
allAccessKeys: set.NewStringSet(),
latestState: &initialSate,
requiredVersion: "06.12.2023",
workerPool: p,