Skip to content

Commit

Permalink
replace deprecated function (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelipo authored Apr 2, 2023
1 parent 4d49100 commit 76e46d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/cases/profiling/task/network/golang/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package main

import (
"io/ioutil"
"io"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -63,7 +63,7 @@ func consumer(w http.ResponseWriter, req *http.Request) {
if err != nil {
log.Printf("send request error: %v", err)
}
all, err := ioutil.ReadAll(get.Body)
all, err := io.ReadAll(get.Body)
_ = get.Body.Close()
if err != nil {
log.Printf("get response body error: %v", err)
Expand Down Expand Up @@ -91,7 +91,7 @@ func consumerZipkin(w http.ResponseWriter, req *http.Request) {
if err != nil {
log.Printf("send request error: %v", err)
}
all, err := ioutil.ReadAll(get.Body)
all, err := io.ReadAll(get.Body)
_ = get.Body.Close()
if err != nil {
log.Printf("get response body error: %v", err)
Expand Down

0 comments on commit 76e46d5

Please sign in to comment.