Handle connection failures on webhook/url pings (#8204)

Properly handle connection failures while replaying events

Fixes #8194
This commit is contained in:
Praveen raj Mani
2019-09-13 05:14:51 +05:30
committed by Harshavardhana
parent ff6aabd9c0
commit 8700945cdf
7 changed files with 54 additions and 63 deletions

View File

@@ -45,7 +45,7 @@ func isNetworkError(err error) bool {
return true
}
if nerr, ok := err.(*rest.NetworkError); ok {
return isNetworkOrHostDown(nerr.Err)
return xnet.IsNetworkOrHostDown(nerr.Err)
}
return false
}