mirror of
1
Fork 0
gotosocial/internal/processing/media
tobi 6ebdc306ed
[bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281)
* close pipereader on failed data function

* gently slurp the bytes

* readability updates

* go fmt

* tidy up file server tests + add more cases

* start moving io wrappers to separate iotools package. Remove use of buffering while piping recache stream

Signed-off-by: kim <grufwub@gmail.com>

* add license text

Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: kim <grufwub@gmail.com>
2022-12-21 11:17:43 +01:00
..
create.go [bugfix] Wrap media in read closer (#941) 2022-11-03 15:03:12 +01:00
delete.go [feature] S3 support (#674) 2022-07-03 12:08:30 +02:00
getemoji.go [feature] Add `/api/v1/admin/custom_emojis` endpoint (#902) 2022-10-12 15:01:42 +02:00
getemoji_test.go [feature] implement custom_emojis endpoint (#563) 2022-05-20 10:34:36 +02:00
getfile.go [bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281) 2022-12-21 11:17:43 +01:00
getfile_test.go [bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281) 2022-12-21 11:17:43 +01:00
getmedia.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
media.go [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
media_test.go [chore] cleanup storage implementation, no need for multiple interface types (#1131) 2022-11-24 09:35:46 +01:00
unattach.go [chore] Standardize database queries, use `bun.Ident()` properly (#886) 2022-10-08 13:50:48 +02:00
unattach_test.go [chore] Update bun / sqlite versions; update gtsmodels (#754) 2022-08-15 11:35:05 +01:00
update.go [chore] Standardize database queries, use `bun.Ident()` properly (#886) 2022-10-08 13:50:48 +02:00
util.go [bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281) 2022-12-21 11:17:43 +01:00