all: remove deprecated use of io/ioutil

This commit is contained in:
Will Norris 2023-01-31 20:30:38 -08:00
parent 12d8f92d33
commit 5ffd8db241
6 changed files with 9 additions and 14 deletions

View file

@ -11,7 +11,6 @@ import (
"encoding/hex"
"errors"
"io"
"io/ioutil"
"log"
"net/url"
"path"
@ -44,7 +43,7 @@ func (c *cache) Get(key string) ([]byte, bool) {
return nil, false
}
value, err := ioutil.ReadAll(resp.Body)
value, err := io.ReadAll(resp.Body)
if err != nil {
log.Printf("error reading s3 response body: %v", err)
return nil, false