diff --git a/cluster/router/tag/tag_router.go b/cluster/router/tag/tag_router.go index dfd8d451ee25dba0e3d83064f00eb6883f9ebe6e..0acdf70ce97b7e1984d32ae9d4fc1b50d97ba071 100644 --- a/cluster/router/tag/tag_router.go +++ b/cluster/router/tag/tag_router.go @@ -298,7 +298,7 @@ func poolWithStaticTag(invokers []protocol.Invoker, pool router.AddrPool) { for i, invoker := range invokers { url := invoker.GetUrl() tag := url.GetParam(constant.Tagkey, "") - if tag != "" { + if len(tag) > 0 { if _, ok := pool[staticPrefix+tag]; !ok { pool[staticPrefix+tag] = roaring.NewBitmap() }