chores: update deps

This commit is contained in:
Chuan Ding
2025-05-30 14:46:27 +08:00
parent 068aa121a4
commit ad950f6c28
4 changed files with 30 additions and 42 deletions

View File

@@ -11,7 +11,6 @@ import (
"polaris/pkg/tmdb"
"polaris/pkg/transmission"
"polaris/pkg/utils"
"time"
"github.com/pkg/errors"
"github.com/robfig/cron"
@@ -51,12 +50,6 @@ func (c *Engine) Init() {
go c.reloadTasks()
c.addSysCron()
go c.checkW500PosterOnStartup()
go func() {
time.Sleep(10*time.Second)
if err := c.stunProxyDownloadClient(); err != nil {
log.Errorf("stun proxy error: %v", err)
}
}()
}
func (c *Engine) GetTask(id int) (*Task, bool) {
@@ -147,7 +140,7 @@ func (c *Engine) reloadTasks() {
c.tasks.Store(t.ID, &Task{Torrent: to})
}
} else if dl.Implementation == downloadclients.ImplementationBuildin {
err := c.reloadUsingBuildinDownloader(t)
err := c.reloadUsingBuildinDownloader(t)
if err != nil {
log.Warnf("buildin downloader error: %v", err)
} else {