Skip to content

Commit

Permalink
uploader: Retry only once per storage
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Jul 18, 2024
1 parent 9476a6c commit 2041441
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"bytes"
"context"
"fmt"
"golang.org/x/sync/errgroup"
"io"
"net/url"
"os"
Expand All @@ -14,6 +13,8 @@ import (
"strings"
"time"

"golang.org/x/sync/errgroup"

"github.com/cenkalti/backoff/v4"
"github.com/golang/glog"
"github.com/livepeer/go-tools/drivers"
Expand All @@ -38,7 +39,7 @@ func newExponentialBackOffExecutor() *backoff.ExponentialBackOff {
}

func UploadRetryBackoff() backoff.BackOff {
return backoff.WithMaxRetries(newExponentialBackOffExecutor(), 4)
return backoff.WithMaxRetries(newExponentialBackOffExecutor(), 1)
}

const segmentWriteTimeout = 5 * time.Minute
Expand Down

0 comments on commit 2041441

Please sign in to comment.