commit | ddd70eef10459ad7af1ba77e86c3d2eba85231d1 | [log] [tgz] |
---|---|---|
author | AlexStocks <alexstocks@foxmail.com> | Sat Jan 25 22:10:22 2020 +0800 |
committer | AlexStocks <alexstocks@foxmail.com> | Sat Jan 25 22:10:22 2020 +0800 |
tree | c81636f29e8555025af401373ef54bff856e023d | |
parent | c0286514f73a8b7a2d744f5be8e936939c1bfcf9 [diff] |
Fix: add type for var
diff --git a/cluster/loadbalance/round_robin.go b/cluster/loadbalance/round_robin.go index e720ab0..ebdd453 100644 --- a/cluster/loadbalance/round_robin.go +++ b/cluster/loadbalance/round_robin.go
@@ -42,7 +42,7 @@ var ( methodWeightMap sync.Map // [string]invokers - state = COMPLETE // update lock acquired ? + state = int32(COMPLETE) // update lock acquired ? recyclePeriod = 60 * time.Second.Nanoseconds() )