mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
remove magic number in lua
This commit is contained in:
@@ -6,7 +6,7 @@ local service_map = {}
|
||||
|
||||
skynet.register_protocol {
|
||||
name = "client",
|
||||
id = 3,
|
||||
id = skynet.PTYPE_CLIENT, -- PTYPE_CLIENT = 3
|
||||
unpack = function() end,
|
||||
dispatch = function(_, address)
|
||||
local w = service_map[address]
|
||||
|
||||
Reference in New Issue
Block a user