Reunify workers, add commands
This commit is contained in:
@@ -95,7 +95,7 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
|
||||
// StartRefreshJob periodically refreshes the torrents
|
||||
func (t *TorrentManager) StartRefreshJob() {
|
||||
_ = t.refreshPool.Submit(func() {
|
||||
_ = t.workerPool.Submit(func() {
|
||||
t.log.Info("Starting periodic refresh job")
|
||||
refreshTicker := time.NewTicker(time.Duration(t.Config.GetRefreshEverySecs()) * time.Second)
|
||||
defer refreshTicker.Stop()
|
||||
|
||||
Reference in New Issue
Block a user