Alanxtl commented on code in PR #2947:
URL: https://github.com/apache/dubbo-go/pull/2947#discussion_r2269125502


##########
filter/polaris/limit/limiter.go:
##########
@@ -74,40 +74,52 @@ func (pl *polarisTpsLimiter) IsAllowable(url *common.URL, 
invocation base.Invoca
        return resp.Get().Code == model.QuotaResultOk
 }
 
-func (pl *polarisTpsLimiter) buildQuotaRequest(url *common.URL, invoaction 
base.Invocation) polaris.QuotaRequest {
+func (pl *polarisTpsLimiter) buildQuotaRequest(url *common.URL, invocation 
base.Invocation) polaris.QuotaRequest {
        ns := remotingpolaris.GetNamespace()
        applicationMode := false
+
+       // TODO: only for compatibility with old config, able to directly 
remove after config is deleted
        for _, item := range config.GetRootConfig().Registries {
                if item.Protocol == constant.PolarisKey {
                        applicationMode = item.RegistryType == 
constant.ServiceKey
                }
        }

Review Comment:
   these lines are used to compatible with old API, if remove old API related 
to this part will be invalid



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to