1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-14 03:30:39 +00:00
This commit is contained in:
sc0vu
2020-10-06 18:20:06 +08:00
parent b8c1e133bf
commit 91e18996bd
3 changed files with 4 additions and 4 deletions

View File

@ -518,7 +518,7 @@ func (b *BeegoHTTPRequest) DoRequest() (resp *http.Response, err error) {
// retries default value is 0, it will run once.
// retries equal to -1, it will run forever until success
// retries is setted, it will retries fixed times.
// Sleeps for a 400ms inbetween calls to reduce spam
// Sleeps for a 400ms in between calls to reduce spam
for i := 0; b.setting.Retries == -1 || i <= b.setting.Retries; i++ {
resp, err = client.Do(b.req)
if err == nil {