mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
cluster servicename is not stable, so don't cache address
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user