add skynet.pcall for hotfix use (call a function with require)

This commit is contained in:
Cloud Wu
2015-04-22 16:50:20 +08:00
parent e3b7f86075
commit cd3391461c
7 changed files with 18 additions and 7 deletions

View File

@@ -5,4 +5,5 @@ skynet.start(function()
local proxy = cluster.proxy("db", ".simpledb")
print(skynet.call(proxy, "lua", "GET", "a"))
print(cluster.call("db", ".simpledb", "GET", "a"))
print(cluster.call("db2", ".simpledb", "GET", "b"))
end)