summaryrefslogtreecommitdiff
path: root/testrig/mediahandler.go
diff options
context:
space:
mode:
authorLibravatar kim (grufwub) <grufwub@gmail.com>2021-09-11 20:12:47 +0100
committerLibravatar kim (grufwub) <grufwub@gmail.com>2021-09-11 20:12:47 +0100
commite43a46e9822a05dd0345a7676e03285ddf83205e (patch)
tree72db13159e47d7815d001285fadb8225b1f7a571 /testrig/mediahandler.go
parentdocumentation updates (#211) (diff)
downloadgotosocial-e43a46e9822a05dd0345a7676e03285ddf83205e.tar.xz
add git.iim.gay/grufwub/go-store for storage backend, replacing blob.Storage
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat (limited to 'testrig/mediahandler.go')
-rw-r--r--testrig/mediahandler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/testrig/mediahandler.go b/testrig/mediahandler.go
index 0872eefd0..3cf6f539a 100644
--- a/testrig/mediahandler.go
+++ b/testrig/mediahandler.go
@@ -19,13 +19,13 @@
package testrig
import (
- "github.com/superseriousbusiness/gotosocial/internal/blob"
+ "git.iim.gay/grufwub/go-store/kv"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/media"
)
// NewTestMediaHandler returns a media handler with the default test config, the default test logger,
// and the given db and storage.
-func NewTestMediaHandler(db db.DB, storage blob.Storage) media.Handler {
+func NewTestMediaHandler(db db.DB, storage *kv.KVStore) media.Handler {
return media.New(NewTestConfig(), db, storage, NewTestLog())
}