summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-cache/v3/result/error.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2022-11-14 09:14:34 +0000
committerLibravatar GitHub <noreply@github.com>2022-11-14 09:14:34 +0000
commit8f2d3ca664a060918c6bf849cbb30ddb2b854433 (patch)
treede41c7c60f702f7b5fa5170d590f01a5e209d9b4 /vendor/codeberg.org/gruf/go-cache/v3/result/error.go
parent[bugfix] Fix login on Mastodon iOS app for users with no statuses (#1042) (diff)
downloadgotosocial-8f2d3ca664a060918c6bf849cbb30ddb2b854433.tar.xz
[chore]: Bump codeberg.org/gruf/go-cache/v3 from 3.1.7 to 3.1.8 (#1043)
Bumps codeberg.org/gruf/go-cache/v3 from 3.1.7 to 3.1.8. --- updated-dependencies: - dependency-name: codeberg.org/gruf/go-cache/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/codeberg.org/gruf/go-cache/v3/result/error.go')
-rw-r--r--vendor/codeberg.org/gruf/go-cache/v3/result/error.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/vendor/codeberg.org/gruf/go-cache/v3/result/error.go b/vendor/codeberg.org/gruf/go-cache/v3/result/error.go
deleted file mode 100644
index fa26083bf..000000000
--- a/vendor/codeberg.org/gruf/go-cache/v3/result/error.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package result
-
-import "errors"
-
-// ErrUnkownLookup ...
-var ErrUnknownLookup = errors.New("unknown lookup identifier")
-
-// IsConflictErr returns whether error is due to key conflict.
-func IsConflictErr(err error) bool {
- _, ok := err.(ConflictError)
- return ok
-}
-
-// ConflictError is returned on cache key conflict.
-type ConflictError struct {
- Key string
-}
-
-// Error returns the message for this key conflict error.
-func (c ConflictError) Error() string {
- return "cache conflict for key \"" + c.Key + "\""
-}