repair fixes!
This commit is contained in:
@@ -20,9 +20,9 @@ func (rd *RealDebrid) UnrestrictUntilOk(link string) *UnrestrictResponse {
|
||||
}
|
||||
|
||||
func retryUntilOk[T any](fn func() (T, error)) T {
|
||||
const initialDelay = 2 * time.Second
|
||||
const initialDelay = 1 * time.Second
|
||||
const maxDelay = 128 * time.Second
|
||||
const maxRetries = 5 // Maximum retries for non-429 errors
|
||||
const maxRetries = 2 // Maximum retries for non-429 errors
|
||||
|
||||
var result T
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user