Revert functionality
This commit is contained in:
@@ -295,11 +295,11 @@ func (t *TorrentManager) startRefreshJob() {
|
|||||||
for {
|
for {
|
||||||
<-time.After(time.Duration(t.Config.GetRefreshEverySeconds()) * time.Second)
|
<-time.After(time.Duration(t.Config.GetRefreshEverySeconds()) * time.Second)
|
||||||
|
|
||||||
// checksum := t.getCurrentState()
|
checksum := t.getCurrentState()
|
||||||
// if t.latestState.equal(checksum) {
|
if t.latestState.equal(checksum) {
|
||||||
// continue
|
continue
|
||||||
// }
|
}
|
||||||
// t.log.Infof("Detected changes! Refreshing %d torrents", checksum.TotalCount)
|
t.log.Infof("Detected changes! Refreshing %d torrents", checksum.TotalCount)
|
||||||
|
|
||||||
t.RefreshTorrents()
|
t.RefreshTorrents()
|
||||||
t.log.Info("Finished refreshing torrents")
|
t.log.Info("Finished refreshing torrents")
|
||||||
|
|||||||
Reference in New Issue
Block a user