This commit is contained in:
Ben Sarmiento
2024-05-23 22:20:19 +02:00
parent 8636a0569d
commit beba993364
3 changed files with 78 additions and 36 deletions

View File

@@ -41,10 +41,12 @@ type TorrentManager struct {
latestState *LibraryState
repairTrigger chan *Torrent
repairSet mapset.Set[*Torrent]
repairQueue mapset.Set[*Torrent]
repairRunning bool
repairRunningMu sync.Mutex
trashBin mapset.Set[string]
trashBin mapset.Set[string]
repairBin mapset.Set[string] // same as trash bin, but only if the torrent has been downloaded
}
// NewTorrentManager creates a new torrent manager