feat: add cluster.unregister (#1563)

This commit is contained in:
JTrancender
2022-04-02 12:17:47 +08:00
committed by GitHub
parent f72573a2aa
commit b555aa19e7
3 changed files with 19 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ skynet.start(function()
-- register name "sdb" for simpledb, you can use cluster.query() later.
-- See cluster2.lua
cluster.register("sdb", sdb)
cluster.unregister("sdb")
cluster.register("sdb", sdb)
print(skynet.call(sdb, "lua", "SET", "a", "foobar"))
print(skynet.call(sdb, "lua", "SET", "b", "foobar2"))