refactor: update logging levels and remove unused code

This commit is contained in:
krau
2024-11-09 11:00:49 +08:00
parent 71e5007228
commit 454d69c9d4
7 changed files with 5 additions and 63 deletions

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"io"
"os"
"path/filepath"
"time"
"github.com/celestix/gotgproto/ext"
@@ -70,7 +71,7 @@ func processPendingTask(task *types.Task) error {
}
defer readCloser.Close()
dest, err := os.Create(common.GetCacheFilePath(task.FileName()))
dest, err := os.Create(filepath.Join(config.Cfg.Temp.BasePath, task.File.FileName))
if err != nil {
return fmt.Errorf("Failed to create file: %w", err)
}