Fix retry policy. #297

This commit is contained in:
Andrey Smirnov
2015-09-24 13:21:13 +03:00
parent 1e4d825d36
commit 8fdc222196
+1 -1
View File
@@ -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 {