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")
|
||||
resp, err = http.Get(query)
|
||||
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("")
|
||||
lowerLimit()
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user