Move info chan closure
This commit is contained in:
@@ -45,7 +45,6 @@ func (t *TorrentManager) refreshTorrents() []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
close(infoChan)
|
|
||||||
t.log.Infof("Fetched info for %d torrents", len(instances))
|
t.log.Infof("Fetched info for %d torrents", len(instances))
|
||||||
|
|
||||||
// delete expired fixers
|
// delete expired fixers
|
||||||
@@ -74,6 +73,7 @@ func (t *TorrentManager) refreshTorrents() []string {
|
|||||||
}
|
}
|
||||||
t.log.Debugf("Delete once done left: %d", t.deleteOnceDone.Cardinality())
|
t.log.Debugf("Delete once done left: %d", t.deleteOnceDone.Cardinality())
|
||||||
|
|
||||||
|
close(infoChan)
|
||||||
newlyFetchedKeys := mapset.NewSet[string]()
|
newlyFetchedKeys := mapset.NewSet[string]()
|
||||||
noInfoCount := 0
|
noInfoCount := 0
|
||||||
for info := range infoChan {
|
for info := range infoChan {
|
||||||
|
|||||||
Reference in New Issue
Block a user