From 96891e4257a964383e55bfb8c59f32a1ff6904a1 Mon Sep 17 00:00:00 2001 From: Ben <83212019@qq.com> Date: Fri, 4 Nov 2022 10:39:52 +0800 Subject: [PATCH] =?UTF-8?q?ReportStat=20=E6=9C=89=E6=97=B6=E5=80=99val=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2=E4=B8=BAnil=20(#113)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 熔断错误判断 * 熔断错误判断 * 熔断判断 + 限流反注册 * resp close * circuit panic, sometime metricsVal.(*model.CircuitBreakGauge) is null * ReportStat 有时候val 类型转换为nil * 修改注释 * 恢复ReportStat Co-authored-by: zhanglei25 --- pkg/flow/async_flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/flow/async_flow.go b/pkg/flow/async_flow.go index bab84e64..50a58658 100644 --- a/pkg/flow/async_flow.go +++ b/pkg/flow/async_flow.go @@ -24,7 +24,7 @@ import ( "github.com/polarismesh/polaris-go/pkg/model" ) -// AsyncGetQuota 同步获取配额信息 +// AsyncGetQuota 异步获取配额信息 func (e *Engine) AsyncGetQuota(request *model.QuotaRequestImpl) (*model.QuotaFutureImpl, error) { commonRequest := data.PoolGetCommonRateLimitRequest() commonRequest.InitByGetQuotaRequest(request, e.configuration)