优化GM服务器
This commit is contained in:
1 parent
00d32292ad
commit
bea91fbf73
12 files changed
+152
-37
No files matched your search
@@ -50,6 +50,14 @@ func NewController(db *dao.Dao, discovery *rpc.DiscoveryClient, messageQueue *mq
|
||||
}
|
||||
r.ec2b = ec2b
|
||||
r.messageQueue = messageQueue
|
||||
go func() {
|
||||
for {
|
||||
_, ok := <-r.messageQueue.GetNetMsg()
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
}
|
||||
}()
|
||||
r.gateServerMap = new(sync.Map)
|
||||
r.stopServerInfo = nil
|
||||
r.whiteList = nil
|
||||
|
||||
Reference in new issue
Block a user