fix: lower limit also on connection refused
This commit is contained in:
parent
ac2166b050
commit
15a6f38631
@ -104,7 +104,8 @@ func getJson(query string, target interface{}) (err error) {
|
|||||||
flog.Trace().Msg("start")
|
flog.Trace().Msg("start")
|
||||||
resp, err = http.Get(query)
|
resp, err = http.Get(query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if strings.Contains(err.Error(), "reset by peer") {
|
if strings.Contains(err.Error(), "reset by peer") ||
|
||||||
|
strings.Contains(err.Error(), "connection refused") {
|
||||||
flog.Debug().Err(err).Msg("")
|
flog.Debug().Err(err).Msg("")
|
||||||
lowerLimit()
|
lowerLimit()
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user