From 7994f822c41cdfd3e82e70136a3607fea9155e10 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 22 Oct 2023 14:20:58 +0200 Subject: [PATCH] packages/hyprspace: io/ioutil -> io --- packages/networking/hyprspace/p2p/node.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/networking/hyprspace/p2p/node.go b/packages/networking/hyprspace/p2p/node.go index 21d3f11..3d5a8de 100644 --- a/packages/networking/hyprspace/p2p/node.go +++ b/packages/networking/hyprspace/p2p/node.go @@ -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