summaryrefslogtreecommitdiff
path: root/internal/cache/util.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-06-03 13:58:57 +0200
committerLibravatar GitHub <noreply@github.com>2023-06-03 13:58:57 +0200
commit21c1552daafbcedbd2e19b0c155ff8db9cff2be0 (patch)
tree00d945280a72d30d51acb618ad7257432d1f9e1a /internal/cache/util.go
parent[bugfix] Fix first item of thread dereferencing always being skipped (#1858) (diff)
downloadgotosocial-21c1552daafbcedbd2e19b0c155ff8db9cff2be0.tar.xz
[chore] Update versions, fix lint errors (#1860)
Diffstat (limited to 'internal/cache/util.go')
-rw-r--r--internal/cache/util.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/cache/util.go b/internal/cache/util.go
index 2d7badf68..a0adfd366 100644
--- a/internal/cache/util.go
+++ b/internal/cache/util.go
@@ -36,6 +36,7 @@ var SentinelError = errors.New("BUG: error should not be returned") //nolint:rev
// caches, which specifically catches and ignores our sentinel error type.
func ignoreErrors(err error) bool {
return errorsv2.Comparable(
+ err,
SentinelError,
context.DeadlineExceeded,
context.Canceled,