Skip to content

Commit

Permalink
request_decode returns name
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Apr 15, 2015
1 parent 89edf9a commit 6d11b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sproto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ end

function sproto:response_encode(protoname, tbl)
local p = queryproto(self, protoname)
return core.encode(p.response,tbl) , p.tag
return core.encode(p.response,tbl)
end

function sproto:request_decode(protoname, ...)
local p = queryproto(self, protoname)
return core.decode(p.request,...)
return core.decode(p.request,...) , p.name
end

function sproto:response_decode(protoname, ...)
Expand Down

0 comments on commit 6d11b55

Please sign in to comment.