gate到robot转发模式

This commit is contained in:
flswld committed 2023-06-15 11:13:03 +08:00
1 parent 8d039dee06
commit 12a8381c43
34 files changed
+3132 -440

No files matched your search

+2
View File
@@ -6,4 +6,6 @@ const (
ANTICHEAT = "ANTICHEAT"
PATHFINDING = "PATHFINDING"
NODE = "NODE"
ROBOT = "ROBOT"
DISPATCH = "DISPATCH"
)
+2
View File
@@ -66,6 +66,8 @@ func NewDiscoveryService() *DiscoveryService {
r.serverInstanceMap[api.GS] = new(sync.Map)
r.serverInstanceMap[api.ANTICHEAT] = new(sync.Map)
r.serverInstanceMap[api.PATHFINDING] = new(sync.Map)
r.serverInstanceMap[api.ROBOT] = new(sync.Map)
r.serverInstanceMap[api.DISPATCH] = new(sync.Map)
r.serverAppIdMap = new(sync.Map)
r.globalGsOnlineMap = make(map[uint32]string)
go r.removeDeadServer()