mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 20:20:55 +00:00
commit
8e37fe3b78
@ -154,7 +154,7 @@ func TestBuildHealthCheckResponseList(t *testing.T) {
|
|||||||
[]string{
|
[]string{
|
||||||
"error",
|
"error",
|
||||||
"Database",
|
"Database",
|
||||||
"Error occured whie starting the db",
|
"Error occurred while starting the db",
|
||||||
},
|
},
|
||||||
[]string{
|
[]string{
|
||||||
"success",
|
"success",
|
||||||
|
@ -145,7 +145,7 @@ httpport = 8080
|
|||||||
# enable db
|
# enable db
|
||||||
[dbinfo]
|
[dbinfo]
|
||||||
# db type name
|
# db type name
|
||||||
# suport mysql,sqlserver
|
# support mysql,sqlserver
|
||||||
name = mysql
|
name = mysql
|
||||||
`
|
`
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ httpport=8080
|
|||||||
# enable db
|
# enable db
|
||||||
[dbinfo]
|
[dbinfo]
|
||||||
# db type name
|
# db type name
|
||||||
# suport mysql,sqlserver
|
# support mysql,sqlserver
|
||||||
name=mysql
|
name=mysql
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
@ -518,7 +518,7 @@ func (b *BeegoHTTPRequest) DoRequest() (resp *http.Response, err error) {
|
|||||||
// retries default value is 0, it will run once.
|
// retries default value is 0, it will run once.
|
||||||
// retries equal to -1, it will run forever until success
|
// retries equal to -1, it will run forever until success
|
||||||
// retries is setted, it will retries fixed times.
|
// 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++ {
|
for i := 0; b.setting.Retries == -1 || i <= b.setting.Retries; i++ {
|
||||||
resp, err = client.Do(b.req)
|
resp, err = client.Do(b.req)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user