From 5004e0a9da665ccc0e18cd4075ee636641b71f0a Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 8 May 2022 19:49:45 +0200 Subject: [bugfix] Fix remote media pruning failing if media already gone (#548) * fix error check of prune to allow missing files * update go-store library, add test for pruning item with db entry but no file Signed-off-by: kim * remove now-unneccessary error check Signed-off-by: kim Co-authored-by: kim --- vendor/codeberg.org/gruf/go-runners/context.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vendor/codeberg.org/gruf/go-runners/context.go') diff --git a/vendor/codeberg.org/gruf/go-runners/context.go b/vendor/codeberg.org/gruf/go-runners/context.go index edb695060..6a0c509cb 100644 --- a/vendor/codeberg.org/gruf/go-runners/context.go +++ b/vendor/codeberg.org/gruf/go-runners/context.go @@ -5,6 +5,13 @@ import ( "time" ) +// closedctx is an always closed context. +var closedctx = func() context.Context { + ctx := make(cancelctx) + close(ctx) + return ctx +}() + // ContextWithCancel returns a new context.Context impl with cancel. func ContextWithCancel() (context.Context, context.CancelFunc) { ctx := make(cancelctx) -- cgit v1.2.3