fix: resolve timeout issues and implement format retrieval retries
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 3m36s
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 3m36s
This commit is contained in:
@@ -19,7 +19,9 @@ func GetFormats(url string) (*FormatOptions, error) {
|
||||
SkipDownload().
|
||||
DumpJSON()
|
||||
|
||||
result, err := dl.Run(context.TODO(), url)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
|
||||
defer cancel()
|
||||
result, err := dl.Run(ctx, url)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user