From 68b91d2128c7be3c4f060091b172c39057318ad4 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Sat, 29 Apr 2023 17:44:20 +0100 Subject: [performance] tweak http client error handling (#1718) * update errors library, check for more TLS type error in http client Signed-off-by: kim * bump cache library version to match errors library Signed-off-by: kim --------- Signed-off-by: kim --- internal/cache/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cache/util.go') diff --git a/internal/cache/util.go b/internal/cache/util.go index 1ffd72876..ba4a43fdd 100644 --- a/internal/cache/util.go +++ b/internal/cache/util.go @@ -35,7 +35,7 @@ var SentinelError = errors.New("BUG: error should not be returned") //nolint:rev // ignoreErrors is an error ignoring function capable of being passed to // caches, which specifically catches and ignores our sentinel error type. func ignoreErrors(err error) bool { - return errorsv2.Is( + return errorsv2.Comparable( SentinelError, context.DeadlineExceeded, context.Canceled, -- cgit v1.2.3