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