From 9375ede68a334e577c9435df9ee1149d87341aa5 Mon Sep 17 00:00:00 2001 From: watermelo <80680489@qq.com> Date: Wed, 12 Aug 2020 20:26:19 +0800 Subject: [PATCH] Mod: modify comments --- cluster/router/chain/chain.go | 2 +- cluster/router/tag/tag_router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/router/chain/chain.go b/cluster/router/chain/chain.go index 6ae9920e0..8746c1daf 100644 --- a/cluster/router/chain/chain.go +++ b/cluster/router/chain/chain.go @@ -65,7 +65,7 @@ func (c *RouterChain) Route(invokers []protocol.Invoker, url *common.URL, invoca return finalInvokers } -// SetInvokers router chain of the initial addresses from registry at the first time. Notify whenever addresses in registry change. +// SetInvokers notify router chain of the initial addresses from registry at the first time. Notify whenever addresses in registry change. func (c *RouterChain) SetInvokers(invokers []protocol.Invoker) { for _, r := range c.routers { if notifyRouter, ok := r.(router.NotifyRouter); ok { diff --git a/cluster/router/tag/tag_router.go b/cluster/router/tag/tag_router.go index c3ee3cbc1..1a4b74d48 100644 --- a/cluster/router/tag/tag_router.go +++ b/cluster/router/tag/tag_router.go @@ -146,7 +146,7 @@ func (c *tagRouter) Notify(invokers []protocol.Invoker) { invoker := invokers[0] url := invoker.GetUrl() providerApplication := url.GetParam(constant.RemoteApplicationKey, "") - if providerApplication == "" { + if len(providerApplication) == 0 { logger.Error("TagRouter must getConfig from or subscribe to a specific application, but the application " + "in this TagRouter is not specified.") return -- GitLab