From 12f52d5835388f22fdecb2a890d58e5425688c8e Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 15 五月 2023 17:43:16 +0800
Subject: [PATCH] add default tag

---
 config.go |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/config.go b/config.go
index 4b34256..ccd6316 100644
--- a/config.go
+++ b/config.go
@@ -25,8 +25,8 @@
 
 	//"github.com/apache/servicecomb-service-center/syncer/pkg/utils"
 	"github.com/hashicorp/memberlist"
-	"github.com/hashicorp/serf/cmd/serf/command/agent"
-	"github.com/hashicorp/serf/serf"
+	"basic.com/valib/serf.git/cmd/serf/command/agent"
+	"basic.com/valib/serf.git/serf"
 )
 
 const (
@@ -137,7 +137,10 @@
 	serfConf.MemberlistConfig.BindPort = bindPort
 	serfConf.NodeName = c.NodeName
 
-	serfConf.Tags = map[string]string{TagKeyRPCPort: strconv.Itoa(c.RPCPort)}
+	serfConf.Tags = map[string]string{
+		TagKeyRPCPort: strconv.Itoa(c.RPCPort),
+		"role": "slave",
+	}
 
 	if c.ClusterID != "" {
 		serfConf.Tags[tagKeyClusterID] = c.ClusterID

--
Gitblit v1.8.0