Skip to content

Commit

Permalink
Update graphql_client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying-peng committed Jun 12, 2024
1 parent e9f7fec commit 41d30c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/graphql_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"bytes"
"context"
"encoding/json"
"io/ioutil"
"io"
"net/http"
"net/url"
"path"
Expand Down Expand Up @@ -66,7 +66,7 @@ func (g *GraphQLClient) Query(ctx context.Context, input string) (string, error)
}
defer response.Body.Close()

data, err := ioutil.ReadAll(response.Body)
data, err := io.ReadAll(response.Body)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 41d30c8

Please sign in to comment.