Skip to content

Commit

Permalink
move snax to skynet
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Jun 1, 2017
1 parent 2be915e commit 5a4ebe6
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/cluster1.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local skynet = require "skynet"
local cluster = require "skynet.cluster"
local snax = require "snax"
local snax = require "skynet.snax"

skynet.start(function()
cluster.reload {
Expand Down
2 changes: 1 addition & 1 deletion examples/share.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local skynet = require "skynet"
local sharedata = require "sharedata"
local sharedata = require "skynet.sharedata"

local mode = ...

Expand Down
1 change: 1 addition & 0 deletions lualib/compat10/snax.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return require "skynet.snax"
2 changes: 1 addition & 1 deletion lualib/skynet/cluster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function cluster.proxy(node, name)
end

function cluster.snax(node, name, address)
local snax = require "snax"
local snax = require "skynet.snax"
if not address then
address = cluster.call(node, ".service", "QUERY", "snaxd" , name)
end
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion service/console.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local skynet = require "skynet"
local snax = require "snax"
local snax = require "skynet.snax"
local socket = require "skynet.socket"

local function split_cmdline(cmdline)
Expand Down
2 changes: 1 addition & 1 deletion service/debug_console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local skynet = require "skynet"
local codecache = require "skynet.codecache"
local core = require "skynet.core"
local socket = require "skynet.socket"
local snax = require "snax"
local snax = require "skynet.snax"
local memory = require "skynet.memory"
local httpd = require "http.httpd"
local sockethelper = require "http.sockethelper"
Expand Down
2 changes: 1 addition & 1 deletion service/service_mgr.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local snax = require "snax"
local snax = require "skynet.snax"

local cmd = {}
local service = {}
Expand Down
2 changes: 1 addition & 1 deletion service/snaxd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local skynet = require "skynet"
local c = require "skynet.core"
local snax_interface = require "snax.interface"
local profile = require "skynet.profile"
local snax = require "snax"
local snax = require "skynet.snax"

local snax_name = tostring(...)
local loaderpath = skynet.getenv"snax_loader"
Expand Down
2 changes: 1 addition & 1 deletion test/pingserver.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local skynet = require "skynet"
local queue = require "skynet.queue"
local snax = require "snax"
local snax = require "skynet.snax"

local i = 0
local hello = "hello"
Expand Down
2 changes: 1 addition & 1 deletion test/testping.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local skynet = require "skynet"
local snax = require "snax"
local snax = require "skynet.snax"

skynet.start(function()
local ps = snax.newservice ("pingserver", "hello world")
Expand Down
2 changes: 1 addition & 1 deletion test/testqueue.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local skynet = require "skynet"
local snax = require "snax"
local snax = require "skynet.snax"

skynet.start(function()
local ps = snax.uniqueservice ("pingserver", "test queue")
Expand Down

0 comments on commit 5a4ebe6

Please sign in to comment.