sweep garbage strings

This commit is contained in:
Cloud Wu
2019-04-18 15:36:14 +08:00
committed by 云风
parent 2bcc691c4d
commit 47d1047004
4 changed files with 108 additions and 9 deletions

View File

@@ -8,10 +8,10 @@ end
local function collect()
local info = {}
while true do
while ssm.collect(false, info) do
skynet.error(string.format("Collect %d strings from %s", info.n, info.key))
end
-- ssm.collect(true)
-- while ssm.collect(false, info) do
-- skynet.error(string.format("Collect %d strings from %s, sweep %d", info.n, info.key, info.sweep))
-- end
ssm.collect(true)
skynet.sleep(50)
end
end