Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Jul 29, 2021
1 parent 02b96bc commit d5bb459
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ linters:
- nolintlint
- prealloc
- stylecheck
- typecheck
- unconvert
- unparam
- unused
Expand All @@ -42,5 +41,6 @@ linters:
# - interfacer
# - staticcheck
# - structcheck
# - typecheck
# - goerr113
# - noctx
3 changes: 2 additions & 1 deletion utils/compression/gzip_compressor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"sync"

"github.com/ava-labs/avalanchego/utils"
Expand Down Expand Up @@ -59,7 +60,7 @@ func (g *gzipCompressor) Decompress(msg []byte) ([]byte, error) {
return nil, err
}
limitedReader := io.LimitReader(g.gzipReader, g.maxSize+1)
decompressed, err := io.ReadAll(limitedReader)
decompressed, err := ioutil.ReadAll(limitedReader)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d5bb459

Please sign in to comment.