mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
sharedata 去掉多余的value字段 (#1442)
This commit is contained in:
@@ -14,7 +14,7 @@ local function newobj(name, tbl)
|
||||
assert(pool[name] == nil)
|
||||
local cobj = sharedata.host.new(tbl)
|
||||
sharedata.host.incref(cobj)
|
||||
local v = { value = tbl , obj = cobj, watch = {} }
|
||||
local v = {obj = cobj, watch = {} }
|
||||
objmap[cobj] = v
|
||||
pool[name] = v
|
||||
pool_count[name] = { n = 0, threshold = 16 }
|
||||
|
||||
Reference in New Issue
Block a user