From ee0a429ad91d19e846ce3fd60ed0c525feb81510 Mon Sep 17 00:00:00 2001 From: nolouch Date: Tue, 28 May 2024 16:49:21 +0800 Subject: [PATCH] address Signed-off-by: nolouch --- client/resource_group/controller/limiter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/resource_group/controller/limiter.go b/client/resource_group/controller/limiter.go index 8008195d819..2e42f591b8b 100644 --- a/client/resource_group/controller/limiter.go +++ b/client/resource_group/controller/limiter.go @@ -118,6 +118,7 @@ func NewLimiter(now time.Time, r Limit, b int64, tokens float64, lowTokensNotify // bursts of at most b tokens. func NewLimiterWithCfg(name string, now time.Time, cfg tokenBucketReconfigureArgs, lowTokensNotifyChan chan<- struct{}) *Limiter { lim := &Limiter{ + name: name, limit: Limit(cfg.NewRate), last: now, tokens: cfg.NewTokens,