summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-cache
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-04-29 17:44:20 +0100
committerLibravatar GitHub <noreply@github.com>2023-04-29 18:44:20 +0200
commit68b91d2128c7be3c4f060091b172c39057318ad4 (patch)
tree3bcf4af8fa79b43f56857df4bba1453977fa01b3 /vendor/codeberg.org/gruf/go-cache
parent[feature] Add GET endpoint for single notification (#1719) (diff)
downloadgotosocial-68b91d2128c7be3c4f060091b172c39057318ad4.tar.xz
[performance] tweak http client error handling (#1718)
* update errors library, check for more TLS type error in http client Signed-off-by: kim <grufwub@gmail.com> * bump cache library version to match errors library Signed-off-by: kim <grufwub@gmail.com> --------- Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'vendor/codeberg.org/gruf/go-cache')
-rw-r--r--vendor/codeberg.org/gruf/go-cache/v3/result/cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/codeberg.org/gruf/go-cache/v3/result/cache.go b/vendor/codeberg.org/gruf/go-cache/v3/result/cache.go
index 3dbb017e9..12b86d8bb 100644
--- a/vendor/codeberg.org/gruf/go-cache/v3/result/cache.go
+++ b/vendor/codeberg.org/gruf/go-cache/v3/result/cache.go
@@ -138,7 +138,7 @@ func (c *Cache[Value]) SetInvalidateCallback(hook func(Value)) {
func (c *Cache[Value]) IgnoreErrors(ignore func(error) bool) {
if ignore == nil {
ignore = func(err error) bool {
- return errors.Is(
+ return errors.Comparable(
err,
context.Canceled,
context.DeadlineExceeded,