fix: timeout in alist and webdav

This commit is contained in:
krau
2024-10-11 16:50:47 +08:00
parent 03c833acbf
commit 5ef7c5ce60
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import (
"os"
"path/filepath"
"strings"
"time"
"github.com/krau/SaveAny-Bot/config"
"github.com/krau/SaveAny-Bot/logger"
@@ -27,6 +28,7 @@ func (w *Webdav) Init() {
logger.L.Fatalf("Failed to connect to webdav server: %v", err)
os.Exit(1)
}
Client.SetTimeout(24 * time.Hour)
}
func (w *Webdav) Save(ctx context.Context, filePath, storagePath string) error {