mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-14 14:47:19 +00:00
Fix retry policy. #297
This commit is contained in:
1 parent
1e4d825d36
commit
8fdc222196
1 file changed
+1
-1
+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