mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
add __nowating flag to cluster config, see issue #803
This commit is contained in:
@@ -22,6 +22,7 @@ skynet.start(function()
|
||||
}
|
||||
print(pcall(cluster.call, "db", "@sdb", "GET", "a")) -- db is down
|
||||
end)
|
||||
cluster.reload { __nowaiting = false }
|
||||
local pingserver = cluster.snax("db3", "pingserver")
|
||||
print(pingserver.req.ping "hello")
|
||||
end)
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
__nowaiting = true -- If you turn this flag off, cluster.call would block when node name is absent
|
||||
|
||||
db = "127.0.0.1:2528"
|
||||
db2 = "127.0.0.1:2529"
|
||||
|
||||
Reference in New Issue
Block a user