You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2020/01/25 14:11:01 UTC

[dubbo-go] branch develop updated: Fix: add type for var

This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/develop by this push:
     new ddd70ee  Fix: add type for var
ddd70ee is described below

commit ddd70eef10459ad7af1ba77e86c3d2eba85231d1
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Sat Jan 25 22:10:22 2020 +0800

    Fix: add type for var
---
 cluster/loadbalance/round_robin.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ const (
 
 var (
 	methodWeightMap sync.Map   // [string]invokers
-	state           = COMPLETE // update lock acquired ?
+	state           = int32(COMPLETE) // update lock acquired ?
 	recyclePeriod   = 60 * time.Second.Nanoseconds()
 )