From 0e675cf8528b2d93d2a9fe22af221dee6a41e54d Mon Sep 17 00:00:00 2001 From: demoManito <1430482733@qq.com> Date: Mon, 27 Mar 2023 19:27:57 +0800 Subject: [PATCH] fix --- contrib/registry/eureka/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/registry/eureka/client.go b/contrib/registry/eureka/client.go index 98a8b063e..231cb956c 100644 --- a/contrib/registry/eureka/client.go +++ b/contrib/registry/eureka/client.go @@ -328,7 +328,6 @@ func (e *Client) request(ctx context.Context, method string, params []string, in if output == nil { return false, nil } - data, err := io.ReadAll(resp.Body) if err != nil { return false, err @@ -337,6 +336,7 @@ func (e *Client) request(ctx context.Context, method string, params []string, in if err != nil { return false, err } + return false, nil } return false, fmt.Errorf("response error %d", resp.StatusCode) }