mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-12 06:21:16 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
This commit is contained in:
commit
0bd80a81eb
@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"compress/gzip"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
)
|
||||
|
||||
type Compressor interface {
|
||||
@ -35,7 +35,7 @@ func (g *GzipCompressor) DeCompress(compressedData []byte) ([]byte, error) {
|
||||
if err != nil {
|
||||
return nil, utils.Wrap(err, "NewReader failed")
|
||||
}
|
||||
compressedData, err = ioutil.ReadAll(reader)
|
||||
compressedData, err = io.ReadAll(reader)
|
||||
if err != nil {
|
||||
return nil, utils.Wrap(err, "ReadAll failed")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user