优化验证重复安装服务

This commit is contained in:
boyce
2020-12-03 15:00:20 +08:00
parent b972709605
commit 9db4a42d10
3 changed files with 10 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ func (cls *Cluster) serviceDiscoverySetNodeInfo (nodeInfo *NodeInfo){
log.Error("Bad duplicate Service Cfg.")
continue
}
mapDuplicate[serviceName] = nil
cls.mapServiceNode[serviceName] = append(cls.mapServiceNode[serviceName],nodeInfo.NodeId)
}

10
go.mod
View File

@@ -2,4 +2,12 @@ module github.com/duanhf2012/origin
go 1.15
require gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
require (
github.com/go-sql-driver/mysql v1.5.0
github.com/golang/protobuf v1.4.3
github.com/gomodule/redigo v1.8.3
github.com/gorilla/websocket v1.4.2
github.com/json-iterator/go v1.1.10
google.golang.org/protobuf v1.25.0
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
)

View File

@@ -45,7 +45,6 @@ var seedLocker sync.Mutex
type TcpPack struct {
Type TcpPackType //0表示连接 1表示断开 2表示数据
//MsgProcessor processor.IProcessor
ClientId uint64
Data interface{}
}