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