mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
merge sproto
This commit is contained in:
@@ -180,9 +180,10 @@ end
|
||||
local header_tmp = {}
|
||||
|
||||
local function gen_response(self, response, session)
|
||||
return function(args)
|
||||
return function(args, ud)
|
||||
header_tmp.type = nil
|
||||
header_tmp.session = session
|
||||
header_tmp.ud = ud
|
||||
local header = core.encode(self.__package, header_tmp)
|
||||
if response then
|
||||
local content = core.encode(response, args)
|
||||
|
||||
Reference in New Issue
Block a user