You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by li...@apache.org on 2023/04/02 07:48:29 UTC

[skywalking-rover] branch main updated: replace deprecated function (#86)

This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git


The following commit(s) were added to refs/heads/main by this push:
     new 76e46d5  replace deprecated function (#86)
76e46d5 is described below

commit 76e46d53022167f9ba73e21a4efe3b29bf8b17ce
Author: Jelipo <me...@jelipo.com>
AuthorDate: Sun Apr 2 15:48:23 2023 +0800

    replace deprecated function (#86)
---
 test/e2e/cases/profiling/task/network/golang/service.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/e2e/cases/profiling/task/network/golang/service.go b/test/e2e/cases/profiling/task/network/golang/service.go
index 3696941..70f7da3 100644
--- a/test/e2e/cases/profiling/task/network/golang/service.go
+++ b/test/e2e/cases/profiling/task/network/golang/service.go
@@ -18,7 +18,7 @@
 package main
 
 import (
-	"io/ioutil"
+	"io"
 	"log"
 	"net/http"
 	"os"
@@ -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)
@@ -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)