diff options
author | 2022-11-05 12:10:19 +0100 | |
---|---|---|
committer | 2022-11-05 11:10:19 +0000 | |
commit | bcb80d3ff4a669d52d63950c8830427646c05884 (patch) | |
tree | 4aa95a83545b3f87a80fe4b625cb6f2ad9c4427f /internal/media | |
parent | [bugfix] Increase field size limits when registering apps (#958) (diff) | |
download | gotosocial-bcb80d3ff4a669d52d63950c8830427646c05884.tar.xz |
[chore] bump gruf/go-store to v2 (#953)
* [chore] bump gruf/go-store to v2
* no more boobs
Diffstat (limited to 'internal/media')
-rw-r--r-- | internal/media/manager_test.go | 10 | ||||
-rw-r--r-- | internal/media/processingemoji.go | 2 | ||||
-rw-r--r-- | internal/media/prunemeta.go | 2 | ||||
-rw-r--r-- | internal/media/prunemeta_test.go | 2 | ||||
-rw-r--r-- | internal/media/pruneremote.go | 2 | ||||
-rw-r--r-- | internal/media/pruneremote_test.go | 2 | ||||
-rw-r--r-- | internal/media/pruneunusedlocal.go | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/internal/media/manager_test.go b/internal/media/manager_test.go index b50235054..3955c1b63 100644 --- a/internal/media/manager_test.go +++ b/internal/media/manager_test.go @@ -27,8 +27,8 @@ import ( "path" "testing" - "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/stretchr/testify/suite" gtsmodel "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/media" @@ -927,7 +927,7 @@ func (suite *ManagerTestSuite) TestSimpleJpegProcessBlockingWithDiskStorage() { temp := fmt.Sprintf("%s/gotosocial-test", os.TempDir()) defer os.RemoveAll(temp) - diskStorage, err := kv.OpenFile(temp, &storage.DiskConfig{ + diskStorage, err := kv.OpenDisk(temp, &storage.DiskConfig{ LockFile: path.Join(temp, "store.lock"), }) if err != nil { @@ -974,7 +974,7 @@ func (suite *ManagerTestSuite) TestSimpleJpegProcessBlockingWithDiskStorage() { suite.NotNil(dbAttachment) // make sure the processed file is in storage - processedFullBytes, err := diskStorage.Get(attachment.File.Path) + processedFullBytes, err := diskStorage.Get(ctx, attachment.File.Path) suite.NoError(err) suite.NotEmpty(processedFullBytes) @@ -987,7 +987,7 @@ func (suite *ManagerTestSuite) TestSimpleJpegProcessBlockingWithDiskStorage() { suite.Equal(processedFullBytesExpected, processedFullBytes) // now do the same for the thumbnail and make sure it's what we expected - processedThumbnailBytes, err := diskStorage.Get(attachment.Thumbnail.Path) + processedThumbnailBytes, err := diskStorage.Get(ctx, attachment.Thumbnail.Path) suite.NoError(err) suite.NotEmpty(processedThumbnailBytes) diff --git a/internal/media/processingemoji.go b/internal/media/processingemoji.go index 79bc23998..32eac4172 100644 --- a/internal/media/processingemoji.go +++ b/internal/media/processingemoji.go @@ -29,7 +29,7 @@ import ( "sync/atomic" "time" - gostore "codeberg.org/gruf/go-store/storage" + gostore "codeberg.org/gruf/go-store/v2/storage" "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" diff --git a/internal/media/prunemeta.go b/internal/media/prunemeta.go index 63bdb00b5..69d79b8d9 100644 --- a/internal/media/prunemeta.go +++ b/internal/media/prunemeta.go @@ -21,7 +21,7 @@ package media import ( "context" - "codeberg.org/gruf/go-store/storage" + "codeberg.org/gruf/go-store/v2/storage" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/log" diff --git a/internal/media/prunemeta_test.go b/internal/media/prunemeta_test.go index d95a1f3ed..57e1fe753 100644 --- a/internal/media/prunemeta_test.go +++ b/internal/media/prunemeta_test.go @@ -22,7 +22,7 @@ import ( "context" "testing" - "codeberg.org/gruf/go-store/storage" + "codeberg.org/gruf/go-store/v2/storage" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/db" ) diff --git a/internal/media/pruneremote.go b/internal/media/pruneremote.go index 19a9642d7..011ed1dd7 100644 --- a/internal/media/pruneremote.go +++ b/internal/media/pruneremote.go @@ -22,7 +22,7 @@ import ( "context" "fmt" - "codeberg.org/gruf/go-store/storage" + "codeberg.org/gruf/go-store/v2/storage" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/log" diff --git a/internal/media/pruneremote_test.go b/internal/media/pruneremote_test.go index d3a01b7be..4af01c1c5 100644 --- a/internal/media/pruneremote_test.go +++ b/internal/media/pruneremote_test.go @@ -25,7 +25,7 @@ import ( "os" "testing" - "codeberg.org/gruf/go-store/storage" + "codeberg.org/gruf/go-store/v2/storage" "github.com/stretchr/testify/suite" ) diff --git a/internal/media/pruneunusedlocal.go b/internal/media/pruneunusedlocal.go index ea777428b..ba74b7c90 100644 --- a/internal/media/pruneunusedlocal.go +++ b/internal/media/pruneunusedlocal.go @@ -22,7 +22,7 @@ import ( "context" "fmt" - "codeberg.org/gruf/go-store/storage" + "codeberg.org/gruf/go-store/v2/storage" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/log" |