Simplify bin

This commit is contained in:
Ben Adrian Sarmiento
2024-06-20 06:36:08 +02:00
parent bc04737ca7
commit 340735f833
4 changed files with 36 additions and 84 deletions

View File

@@ -53,9 +53,8 @@ type TorrentManager struct {
repairRunning bool
repairRunningMu sync.Mutex
OnceDoneBin mapset.Set[string]
DeleteOnCompletionBin cmap.ConcurrentMap[string, string]
hasFFprobe bool
OnceDoneBin mapset.Set[string]
hasFFprobe bool
}
// NewTorrentManager creates a new torrent manager
@@ -86,9 +85,8 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, w
latestState: &LibraryState{log: log},
OnceDoneBin: mapset.NewSet[string](),
DeleteOnCompletionBin: cmap.New[string](),
hasFFprobe: hasFFprobe,
OnceDoneBin: mapset.NewSet[string](),
hasFFprobe: hasFFprobe,
}
t.initializeBins()