()
| 1156 | } |
| 1157 | |
| 1158 | func (r *Request) getRetryOption() *retryOption { |
| 1159 | if r.retryOption == nil { |
| 1160 | r.retryOption = newDefaultRetryOption() |
| 1161 | } |
| 1162 | return r.retryOption |
| 1163 | } |
| 1164 | |
| 1165 | // SetRetryCount enables retry and set the maximum retry count. |
| 1166 | // It will retry infinitely if count is negative. |
no test coverage detected