Couple of fixes

This commit is contained in:
Ben Sarmiento
2023-11-10 21:25:53 +01:00
parent b97f859a32
commit ab31114f2e
7 changed files with 131 additions and 152 deletions

View File

@@ -9,7 +9,6 @@ import (
"net/url"
"strconv"
"strings"
"time"
zurghttp "github.com/debridmediamanager.com/zurg/pkg/http"
"go.uber.org/zap"
@@ -22,9 +21,7 @@ type RealDebrid struct {
func NewRealDebrid(accessToken string, log *zap.SugaredLogger) *RealDebrid {
maxRetries := 10
timeout := 10 * time.Second
client := zurghttp.NewHTTPClient(accessToken, maxRetries, timeout)
log.Debugf("Created an HTTP client with %d max retries and %s timeout", maxRetries, timeout)
client := zurghttp.NewHTTPClient(accessToken, maxRetries)
return &RealDebrid{
log: log,
client: client,