mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
set node = false when node is down, see #803
This commit is contained in:
@@ -20,8 +20,10 @@ skynet.start(function()
|
||||
-- test snax service
|
||||
skynet.timeout(300,function()
|
||||
cluster.reload {
|
||||
db = false, -- db is down
|
||||
db3 = "127.0.0.1:2529"
|
||||
}
|
||||
print(pcall(cluster.call, "db", sdb, "GET", "a")) -- db is down
|
||||
end)
|
||||
local pingserver = cluster.snax("db3", "pingserver")
|
||||
print(pingserver.req.ping "hello")
|
||||
|
||||
Reference in New Issue
Block a user