From 3be0f507221617f68b27b81e1ef6cc0dafc062df Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Sat, 15 Nov 2014 21:33:25 +0800 Subject: [PATCH] use snax.newservice would be better --- test/testping.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testping.lua b/test/testping.lua index fb0514e8..c40392cf 100644 --- a/test/testping.lua +++ b/test/testping.lua @@ -2,7 +2,7 @@ local skynet = require "skynet" local snax = require "snax" skynet.start(function() - local ps = snax.uniqueservice ("pingserver", "hello world") + local ps = snax.newservice ("pingserver", "hello world") print(ps.req.ping("foobar")) print(ps.post.hello()) print(pcall(ps.req.error))