mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
sproto.attach also need ud
This commit is contained in:
@@ -227,10 +227,11 @@ function host:dispatch(...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function host:attach(sp)
|
function host:attach(sp)
|
||||||
return function(name, args, session)
|
return function(name, args, session, ud)
|
||||||
local proto = queryproto(sp, name)
|
local proto = queryproto(sp, name)
|
||||||
header_tmp.type = proto.tag
|
header_tmp.type = proto.tag
|
||||||
header_tmp.session = session
|
header_tmp.session = session
|
||||||
|
header_tmp.ud = ud
|
||||||
local header = core.encode(self.__package, header_tmp)
|
local header = core.encode(self.__package, header_tmp)
|
||||||
|
|
||||||
if session then
|
if session then
|
||||||
|
|||||||
Reference in New Issue
Block a user