diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-07-26 10:52:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 10:52:24 -0700 |
commit | 90e5e279c175b238d58432acb5eb6422ddfe22e7 (patch) | |
tree | 0fc73fc058225ca7a889e85126a866e5612a8fa5 /utils/file_backend_s3.go | |
parent | bae26ec268aef4e85d5055f1b83c6b3992bf178f (diff) | |
download | chat-90e5e279c175b238d58432acb5eb6422ddfe22e7.tar.gz chat-90e5e279c175b238d58432acb5eb6422ddfe22e7.tar.bz2 chat-90e5e279c175b238d58432acb5eb6422ddfe22e7.zip |
Fix file streaming to close files. (#9168)
Diffstat (limited to 'utils/file_backend_s3.go')
-rw-r--r-- | utils/file_backend_s3.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/file_backend_s3.go b/utils/file_backend_s3.go index dedcb2797..2868dd342 100644 --- a/utils/file_backend_s3.go +++ b/utils/file_backend_s3.go @@ -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 { |