remove magic number in lua

This commit is contained in:
云风
2013-12-18 22:42:10 +08:00
parent f54776e181
commit 331c8009f8
3 changed files with 24 additions and 14 deletions

View File

@@ -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]