mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
unpack to table.unpack
This commit is contained in:
@@ -335,7 +335,7 @@ function mongo_collection:findAndModify(doc)
|
|||||||
table.insert(cmd, k)
|
table.insert(cmd, k)
|
||||||
table.insert(cmd, v)
|
table.insert(cmd, v)
|
||||||
end
|
end
|
||||||
return self.database:runCommand(unpack(cmd))
|
return self.database:runCommand(table.unpack(cmd))
|
||||||
end
|
end
|
||||||
|
|
||||||
function mongo_cursor:hasNext()
|
function mongo_cursor:hasNext()
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ local function dump_list(list)
|
|||||||
end
|
end
|
||||||
|
|
||||||
skynet.start(function()
|
skynet.start(function()
|
||||||
local list = skynet.call(".launcher","lua", unpack(cmd))
|
local list = skynet.call(".launcher","lua", table.unpack(cmd))
|
||||||
if list then
|
if list then
|
||||||
dump_list(list)
|
dump_list(list)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user