From 8c4d42eaee394bbfcd4a4962909a11c6d94cf98b Mon Sep 17 00:00:00 2001
From: Ian Luo <ian.luo@gmail.com>
Date: Tue, 18 Aug 2020 22:05:04 +0800
Subject: [PATCH] group var

---
 cluster/router/chain/chain.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cluster/router/chain/chain.go b/cluster/router/chain/chain.go
index 353ea82b4..a7f139b23 100644
--- a/cluster/router/chain/chain.go
+++ b/cluster/router/chain/chain.go
@@ -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 {
-- 
GitLab