From cfe8b19c8ad8144d1d2a419e0d2b052d252e860f Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Tue, 12 Aug 2014 21:41:28 +0800 Subject: [PATCH] change .slave to .cslave --- lualib/skynet/harbor.lua | 6 +++--- service/bootstrap.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lualib/skynet/harbor.lua b/lualib/skynet/harbor.lua index 5f470be8..a84d94ef 100644 --- a/lualib/skynet/harbor.lua +++ b/lualib/skynet/harbor.lua @@ -4,15 +4,15 @@ local harbor = {} function harbor.globalname(name, handle) handle = handle or skynet.self() - skynet.send(".slave", "lua", "REGISTER", name, handle) + skynet.send(".cslave", "lua", "REGISTER", name, handle) end function harbor.link(id) - skynet.call(".slave", "lua", "LINK", id) + skynet.call(".cslave", "lua", "LINK", id) end function harbor.connect(id) - skynet.call(".slave", "lua", "CONNECT", id) + skynet.call(".cslave", "lua", "CONNECT", id) end return harbor diff --git a/service/bootstrap.lua b/service/bootstrap.lua index 06e67d7e..e1df7170 100644 --- a/service/bootstrap.lua +++ b/service/bootstrap.lua @@ -17,7 +17,7 @@ skynet.start(function() if not ok then skynet.abort() end - skynet.name(".slave", slave) + skynet.name(".cslave", slave) else if standalone then @@ -30,7 +30,7 @@ skynet.start(function() if not ok then skynet.abort() end - skynet.name(".slave", slave) + skynet.name(".cslave", slave) end if standalone then