From 50e74b5459660ea55569248af906db7aff96bd04 Mon Sep 17 00:00:00 2001 From: chuntaojun Date: Mon, 15 Jul 2024 20:19:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=8A=E6=8A=A5=E6=97=A0=E6=B3=95=E6=B8=85?= =?UTF-8?q?=E7=90=86=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/quickstart/consumer/main.go | 2 +- examples/ratelimit/consumer/main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/quickstart/consumer/main.go b/examples/quickstart/consumer/main.go index 25ab8782..03c1aee3 100644 --- a/examples/quickstart/consumer/main.go +++ b/examples/quickstart/consumer/main.go @@ -92,7 +92,7 @@ func (svr *PolarisConsumer) runWebServer() { }, } ret.SetDelay(delay) - ret.SetRetCode(int32(resp.StatusCode)) + ret.SetRetCode(int32(http.StatusInternalServerError)) if err := svr.consumer.UpdateServiceCallResult(ret); err != nil { log.Printf("do report service call result : %+v", err) } diff --git a/examples/ratelimit/consumer/main.go b/examples/ratelimit/consumer/main.go index 107fc93a..ceb470b9 100644 --- a/examples/ratelimit/consumer/main.go +++ b/examples/ratelimit/consumer/main.go @@ -91,6 +91,7 @@ func (svr *PolarisConsumer) runWebServer() { RetStatus: model.RetFail, }, } + ret.SetRetCode(int32(http.StatusInternalServerError)) ret.SetDelay(delay) if err := svr.consumer.UpdateServiceCallResult(ret); err != nil { log.Printf("do report service call result : %+v", err)