merge servicecache branch

This commit is contained in:
Cloud Wu
2014-04-29 14:39:54 +08:00
8 changed files with 235 additions and 46 deletions

View File

@@ -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))