mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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 <grufwub@gmail.com> * remove now-unneccessary error check Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: kim <grufwub@gmail.com>
This commit is contained in:
7
vendor/codeberg.org/gruf/go-runners/context.go
generated
vendored
7
vendor/codeberg.org/gruf/go-runners/context.go
generated
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user