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

group var

parent 99c91038
No related branches found
No related tags found
No related merge requests found
......@@ -177,8 +177,10 @@ func (c *RouterChain) buildCache() {
cache := BuildCache(invokers)
origin := c.loadCache()
var mutex sync.Mutex
var wg sync.WaitGroup
var (
mutex sync.Mutex
wg sync.WaitGroup
)
for _, r := range c.copyRouters() {
if p, ok := r.(router.Poolable); ok {
......
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