Skip to content

Commit

Permalink
Fix concurrency loop issue with thumbURL (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 authored Jun 27, 2024
1 parent 1d394e3 commit 790e8a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ func extractThumb(outputURI *url.URL, segment []byte, storageFallbackURLs map[st
errGroup := &errgroup.Group{}

for _, thumbURL := range thumbURLs {
thumbURL := thumbURL
errGroup.Go(func() error {
_, _, err = uploadFileWithBackup(thumbURL, thumbData, fields, 10*time.Second, true, storageFallbackURLs)
if err != nil {
Expand Down

0 comments on commit 790e8a0

Please sign in to comment.