mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix : connection
This commit is contained in:
@@ -30,8 +30,8 @@ local meta = {
|
||||
}
|
||||
|
||||
function redis.connect(dbname)
|
||||
local handle = skynet.call(".redis-manager",dbname)
|
||||
assert(handle ~= "")
|
||||
local handle = skynet.call(".redis-manager",skynet.unpack, skynet.pack(dbname))
|
||||
assert(handle ~= nil)
|
||||
return setmetatable({ __handle = handle } , meta)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user