mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
remote map table must not be weak
This commit is contained in:
6
config
6
config
@@ -2,10 +2,10 @@ root = "./"
|
|||||||
thread = 8
|
thread = 8
|
||||||
logger = nil
|
logger = nil
|
||||||
harbor = 1
|
harbor = 1
|
||||||
address = "127.0.0.1:2525"
|
address = "127.0.0.1:2526"
|
||||||
master = "127.0.0.1:2012"
|
master = "127.0.0.1:2013"
|
||||||
start = "main"
|
start = "main"
|
||||||
standalone = "0.0.0.0:2012"
|
standalone = "0.0.0.0:2013"
|
||||||
luaservice = root.."service/?.lua;"..root.."service/?/init.lua"
|
luaservice = root.."service/?.lua;"..root.."service/?/init.lua"
|
||||||
cpath = root.."service/?.so"
|
cpath = root.."service/?.so"
|
||||||
protopath = root.."proto"
|
protopath = root.."proto"
|
||||||
|
|||||||
@@ -357,7 +357,6 @@ do
|
|||||||
local weak_meta = { __mode = "kv" }
|
local weak_meta = { __mode = "kv" }
|
||||||
local meta = getmetatable(c.unpack(c.pack({ __remote = 0 })))
|
local meta = getmetatable(c.unpack(c.pack({ __remote = 0 })))
|
||||||
local remote_call_func = setmetatable({}, weak_meta)
|
local remote_call_func = setmetatable({}, weak_meta)
|
||||||
setmetatable(meta, weak_meta)
|
|
||||||
|
|
||||||
local _send = assert(c.send)
|
local _send = assert(c.send)
|
||||||
local _yield = coroutine.yield
|
local _yield = coroutine.yield
|
||||||
|
|||||||
Reference in New Issue
Block a user