合并杂项功能服务器节点到multi服务器节点

This commit is contained in:
flswld committed 2023-10-22 19:46:08 +08:00
1 parent 64699c23d7
commit 6cca998915
42 files changed
+344 -647

No files matched your search

+3 -2
View File
@@ -1,11 +1,12 @@
package api
const (
NODE = "NODE"
DISPATCH = "DISPATCH"
GATE = "GATE"
GS = "GS"
ANTICHEAT = "ANTICHEAT"
PATHFINDING = "PATHFINDING"
NODE = "NODE"
MULTI = "MULTI"
ROBOT = "ROBOT"
DISPATCH = "DISPATCH"
)
+1 -2
View File
@@ -88,8 +88,7 @@ func NewDiscoveryService(db *dao.Dao, messageQueue *mq.MessageQueue) (*Discovery
r.serverInstanceMap = make(map[string]*sync.Map)
r.serverInstanceMap[api.GATE] = new(sync.Map)
r.serverInstanceMap[api.GS] = new(sync.Map)
r.serverInstanceMap[api.ANTICHEAT] = new(sync.Map)
r.serverInstanceMap[api.PATHFINDING] = new(sync.Map)
r.serverInstanceMap[api.MULTI] = new(sync.Map)
r.serverInstanceMap[api.ROBOT] = new(sync.Map)
r.serverInstanceMap[api.DISPATCH] = new(sync.Map)
r.serverAppIdMap = new(sync.Map)