mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
redis bugfix
This commit is contained in:
@@ -55,7 +55,7 @@ redcmd[42] = function(data) -- '*'
|
|||||||
local line = skynet.call(".connection", readline_fd)
|
local line = skynet.call(".connection", readline_fd)
|
||||||
local bytes = tonumber(string.sub(line,2) + 2)
|
local bytes = tonumber(string.sub(line,2) + 2)
|
||||||
local data = skynet.call(".connection", read_fd .. bytes)
|
local data = skynet.call(".connection", read_fd .. bytes)
|
||||||
table.insert(result, string.sub(data,1,-3))
|
table.insert(bulk, string.sub(data,1,-3))
|
||||||
end
|
end
|
||||||
skynet.ret(skynet.pack(true,bulk))
|
skynet.ret(skynet.pack(true,bulk))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user