periodic repair

This commit is contained in:
Ben Sarmiento
2024-01-27 14:14:11 +01:00
parent 05d2544fe8
commit a851282b2a
7 changed files with 97 additions and 19 deletions

View File

@@ -46,7 +46,7 @@ func (t *TorrentManager) refreshTorrents() []string {
wg.Wait()
close(infoChan)
t.log.Debugf("Fetched info for %d torrents", len(instances))
t.log.Infof("Fetched info for %d torrents", len(instances))
// delete expired fixers
doesNotExist.Each(func(fixerID string) bool {
@@ -122,7 +122,7 @@ func (t *TorrentManager) refreshTorrents() []string {
// startRefreshJob periodically refreshes the torrents
func (t *TorrentManager) startRefreshJob() {
_ = t.workerPool.Submit(func() {
t.log.Info("Starting periodic refresh")
t.log.Info("Starting periodic refresh job")
for {
<-time.After(time.Duration(t.Config.GetRefreshEverySeconds()) * time.Second)