mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
merge servicecache branch
This commit is contained in:
@@ -2,7 +2,7 @@ local skynet = require "skynet"
|
||||
local snax = require "snax"
|
||||
|
||||
skynet.start(function()
|
||||
local ps = snax.newservice ("pingserver", "hello world")
|
||||
local ps = snax.uniqueservice ("pingserver", "hello world")
|
||||
print(ps.req.ping("foobar"))
|
||||
print(ps.post.hello())
|
||||
print(pcall(ps.req.error))
|
||||
|
||||
Reference in New Issue
Block a user