fix: isNetworkError should use errors.As, not a bare type assertion #84
Reference in New Issue
Block a user
Delete Branch "benvin/isnetworkerror-errors-as"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #68
Why
isNetworkErrortype-assertederr.(*UpstreamError)directly. If the error is ever wrapped, stale-on-error handling silently stops triggering.Changes
errors.Asto detect*UpstreamErrorthrough wrapping.Validation
make e2epasses.