Skip to content
Snippets Groups Projects
Commit f6061244 authored by Ian Luo's avatar Ian Luo
Browse files

use len(tag) > 0

parent 8c4d42ea
No related branches found
No related tags found
No related merge requests found
......@@ -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()
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment