mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-07 05:42:42 +00:00
Fix retry policy. #297
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ func (t *ResilientTransport) tries(req *http.Request) (res *http.Response, err e
|
||||
if !t.ShouldRetry(req, res, err) {
|
||||
break
|
||||
}
|
||||
if try == MaxTries-1 {
|
||||
if try == (t.MaxTries - 1) {
|
||||
break
|
||||
}
|
||||
if res != nil {
|
||||
|
||||
Reference in New Issue
Block a user