update sproto, bugfix sproto_dump

This commit is contained in:
Cloud Wu
2015-05-11 21:39:56 +08:00
parent c7f5145e9e
commit 35c8c63793
2 changed files with 6 additions and 5 deletions

View File

@@ -194,7 +194,7 @@ local function check_protocol(r)
local request = v.request
local response = v.response
local p = map[tag]
if p then
error(string.format("redefined protocol tag %d at %s", tag, name))
end
@@ -340,9 +340,6 @@ local function packtype(name, t, alltypes)
end
local function packproto(name, p, alltypes)
-- if p.request == nil then
-- error(string.format("Protocol %s need request", name))
-- end
if p.request then
local request = alltypes[p.request]
if request == nil then