Fix duplication

This commit is contained in:
Ben Sarmiento
2024-01-24 12:23:50 +01:00
parent 2b6f0f95a8
commit 52a31abe35
3 changed files with 23 additions and 8 deletions

View File

@@ -29,6 +29,7 @@ type TorrentManager struct {
DownloadMap cmap.ConcurrentMap[string, *realdebrid.Download]
fixers cmap.ConcurrentMap[string, *Torrent]
repairs mapset.Set[string]
ensureDelete mapset.Set[string]
allAccessKeys mapset.Set[string]
latestState *LibraryState
requiredVersion string
@@ -49,6 +50,7 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, w
DownloadMap: cmap.New[*realdebrid.Download](),
fixers: cmap.New[*Torrent](),
repairs: mapset.NewSet[string](),
ensureDelete: mapset.NewSet[string](),
allAccessKeys: mapset.NewSet[string](),
latestState: &LibraryState{},
requiredVersion: "24.01.2024",