diff options
author | 2022-11-24 08:35:46 +0000 | |
---|---|---|
committer | 2022-11-24 09:35:46 +0100 | |
commit | fcb9c0bb8bed51ffb856b8e47f4e047ddd75eb67 (patch) | |
tree | 933c9e1ed2b37e3ca2ee371c0b53f2c1ac561cc5 /internal/media/util.go | |
parent | [feature/performance] Fail fast when doing remote transport calls inside inco... (diff) | |
download | gotosocial-fcb9c0bb8bed51ffb856b8e47f4e047ddd75eb67.tar.xz |
[chore] cleanup storage implementation, no need for multiple interface types (#1131)
Signed-off-by: kim <grufwub@gmail.com>
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/media/util.go')
-rw-r--r-- | internal/media/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/util.go b/internal/media/util.go index 2968ca2f6..316d63dec 100644 --- a/internal/media/util.go +++ b/internal/media/util.go @@ -163,7 +163,7 @@ func (r *lengthReader) Read(b []byte) (int, error) { // putStream either puts a file with a known fileSize into storage directly, and returns the // fileSize unchanged, or it wraps the reader with a lengthReader and returns the discovered // fileSize. -func putStream(ctx context.Context, storage storage.Driver, key string, r io.Reader, fileSize int64) (int64, error) { +func putStream(ctx context.Context, storage *storage.Driver, key string, r io.Reader, fileSize int64) (int64, error) { if fileSize > 0 { return fileSize, storage.PutStream(ctx, key, r) } |