bugfix : connection

This commit is contained in:
云风
2012-08-30 16:30:52 +08:00
parent 1791becd09
commit 51ef283887
8 changed files with 34 additions and 20 deletions

View File

@@ -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