cluster servicename is not stable, so don't cache address

This commit is contained in:
Cloud Wu
2014-08-13 19:10:51 +08:00
parent 2cf69a6ef0
commit 845acd3314
3 changed files with 1 additions and 15 deletions

View File

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