diff options
author | 2023-07-24 13:14:13 +0100 | |
---|---|---|
committer | 2023-07-24 13:14:13 +0100 | |
commit | 9eff0d46e49b947dc2642207ee49ed657eb6b565 (patch) | |
tree | 62994afff170737d83f1ed911e385504a0ad16cd /internal/storage/storage.go | |
parent | [chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.24 to 1.0.25 (#2021) (diff) | |
download | gotosocial-9eff0d46e49b947dc2642207ee49ed657eb6b565.tar.xz |
[feature/performance] support uncaching remote emoji + scheduled cleanup functions (#1987)
Diffstat (limited to 'internal/storage/storage.go')
-rw-r--r-- | internal/storage/storage.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/storage/storage.go b/internal/storage/storage.go index ea8184881..588c586d8 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -97,6 +97,9 @@ func (d *Driver) Has(ctx context.Context, key string) (bool, error) { func (d *Driver) WalkKeys(ctx context.Context, walk func(context.Context, string) error) error { return d.Storage.WalkKeys(ctx, storage.WalkKeysOptions{ WalkFn: func(ctx context.Context, entry storage.Entry) error { + if entry.Key == "store.lock" { + return nil // skip this. + } return walk(ctx, entry.Key) }, }) |