packages/hyprspace: io/ioutil -> io

This commit is contained in:
Max Headroom 2023-10-22 14:20:58 +02:00
parent c3b5e04772
commit 7994f822c4

View file

@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"math/rand"
"net/http"
"net/url"
@ -50,7 +50,7 @@ func getExtraPeers(addr ma.Multiaddr) (nodesList []string) {
}
defer resp.Body.Close()
apiResponse, err := ioutil.ReadAll(resp.Body)
apiResponse, err := io.ReadAll(resp.Body)
if err != nil {
return
@ -80,7 +80,7 @@ func getExtraBootstrapNodes(addr ma.Multiaddr) (nodesList []string) {
}
defer resp.Body.Close()
apiResponse, err := ioutil.ReadAll(resp.Body)
apiResponse, err := io.ReadAll(resp.Body)
if err != nil {
return