Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Aug 31, 2023
1 parent 052a961 commit 7a9b337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/internal/utils/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package utils

import (
"bytes"
"io/ioutil"
"io"
"net"
"net/http"
"time"
Expand Down Expand Up @@ -31,7 +31,7 @@ func GetIP(serverUrl string) (string, error) {
}
defer rsp.Body.Close()

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

0 comments on commit 7a9b337

Please sign in to comment.