Refactor rres
This commit is contained in:
parent
8cd17bd7a9
commit
e9123b8b25
2 changed files with 94 additions and 74 deletions
|
@ -442,7 +442,7 @@ func compress(data []byte, compType int) ([]byte, error) {
|
|||
case rres.CompDeflate:
|
||||
buf := new(bytes.Buffer)
|
||||
|
||||
w, err := flate.NewWriter(buf, flate.BestCompression)
|
||||
w, err := flate.NewWriter(buf, flate.DefaultCompression)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue