feat: change timeout

This commit is contained in:
Simon Ding
2024-11-05 18:44:32 +08:00
parent ae611943c3
commit 66a307f202

View File

@@ -130,7 +130,7 @@ func tryParseFloat(s string) float32 {
}
func Search(indexer *db.TorznabInfo, keyWord string) ([]Result, error) {
ctx, cancel := context.WithTimeout(context.TODO(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.TODO(), 30*time.Second)
defer cancel()
req, err := http.NewRequestWithContext(ctx, http.MethodGet, indexer.URL, nil)