mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
unique service
This commit is contained in:
@@ -28,8 +28,8 @@ function group.release(id)
|
||||
end
|
||||
|
||||
skynet.init(function()
|
||||
SERVICE = skynet.call("SERVICE", "lua", "group_mgr")
|
||||
skynet.call(".service","lua","group_agent", SERVICE)
|
||||
SERVICE = skynet.uniqueservice(true, "group_mgr")
|
||||
skynet.uniqueservice("group_agent", SERVICE)
|
||||
end, "mcgroup")
|
||||
|
||||
return group
|
||||
|
||||
Reference in New Issue
Block a user