remote map table must not be weak

This commit is contained in:
云风
2013-01-03 12:59:13 +08:00
parent c10082a2b1
commit 74ac9403e8
2 changed files with 3 additions and 4 deletions

6
config
View File

@@ -2,10 +2,10 @@ root = "./"
thread = 8
logger = nil
harbor = 1
address = "127.0.0.1:2525"
master = "127.0.0.1:2012"
address = "127.0.0.1:2526"
master = "127.0.0.1:2013"
start = "main"
standalone = "0.0.0.0:2012"
standalone = "0.0.0.0:2013"
luaservice = root.."service/?.lua;"..root.."service/?/init.lua"
cpath = root.."service/?.so"
protopath = root.."proto"

View File

@@ -357,7 +357,6 @@ do
local weak_meta = { __mode = "kv" }
local meta = getmetatable(c.unpack(c.pack({ __remote = 0 })))
local remote_call_func = setmetatable({}, weak_meta)
setmetatable(meta, weak_meta)
local _send = assert(c.send)
local _yield = coroutine.yield