Add line-breaks after blocks
This commit is contained in:
parent
8f1d408c52
commit
e150d4832b
1 changed files with 3 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ func urlIsRecoverableError(err error) bool {
|
|||
if ok {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
@ -56,9 +57,11 @@ func netIsRecoverableError(err error) bool {
|
|||
recoverableErrors := map[string]bool{
|
||||
"connection reset by peer": true,
|
||||
}
|
||||
|
||||
cErr, ok := err.(*net.OpError)
|
||||
if ok && recoverableErrors[cErr.Err.Error()] == true {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue