periodic repair
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user