Fix file streaming to close files. (#9168)

Этот коммит содержится в:
Christopher Speller
2018-07-26 10:52:24 -07:00
коммит произвёл GitHub
родитель bae26ec268
Коммит 90e5e279c1
3 изменённых файлов: 26 добавлений и 7 удалений

Просмотреть файл

@@ -82,6 +82,7 @@ func (b *S3FileBackend) TestConnection() *model.AppError {
return nil
}
// Caller must close the first return value
func (b *S3FileBackend) Reader(path string) (io.ReadCloser, *model.AppError) {
s3Clnt, err := b.s3New()
if err != nil {