Rework basic auth
This commit is contained in:
@@ -35,13 +35,10 @@ func (t *TorrentManager) repairAll() {
|
||||
if torrent.AnyInProgress() || torrent.Unfixable {
|
||||
return
|
||||
}
|
||||
// Check if the current group is full
|
||||
if currentGroup.Cardinality() >= maxGroupSize {
|
||||
// Create a new group and add it to the hashGroups
|
||||
currentGroup = mapset.NewSet[string]()
|
||||
hashGroups = append(hashGroups, currentGroup)
|
||||
}
|
||||
// Add the hash to the current group
|
||||
currentGroup.Add(torrent.Hash)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user