From bcb80d3ff4a669d52d63950c8830427646c05884 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 5 Nov 2022 12:10:19 +0100 Subject: [chore] bump gruf/go-store to v2 (#953) * [chore] bump gruf/go-store to v2 * no more boobs --- internal/storage/storage.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/storage/storage.go') diff --git a/internal/storage/storage.go b/internal/storage/storage.go index 7bd4c18aa..5d712bc3c 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -26,8 +26,8 @@ import ( "net/url" "path" - "codeberg.org/gruf/go-store/kv" - "codeberg.org/gruf/go-store/storage" + "codeberg.org/gruf/go-store/v2/kv" + "codeberg.org/gruf/go-store/v2/storage" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" "github.com/superseriousbusiness/gotosocial/internal/config" @@ -60,7 +60,7 @@ func AutoConfig() (Driver, error) { return NewS3(mc, config.GetStorageS3BucketName()), nil case "local": storageBasePath := config.GetStorageLocalBasePath() - storage, err := kv.OpenFile(storageBasePath, &storage.DiskConfig{ + storage, err := kv.OpenDisk(storageBasePath, &storage.DiskConfig{ // Put the store lockfile in the storage dir itself. // Normally this would not be safe, since we could end up // overwriting the lockfile if we store a file called 'store.lock'. -- cgit v1.2.3