From ebc84af7f7886c6171e65d1d8ab909e39d87957d Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 18 Jul 2023 10:32:44 +0800 Subject: [PATCH] update nameke example --- examples/nameko_demo/rpc_demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/nameko_demo/rpc_demo.py b/examples/nameko_demo/rpc_demo.py index 958e0ac..843d1a7 100644 --- a/examples/nameko_demo/rpc_demo.py +++ b/examples/nameko_demo/rpc_demo.py @@ -1,4 +1,4 @@ -from nameko.rpc import rpc, RpcProxy +from nameko.rpc import rpc, ServiceRpc class RpcResponderDemoService: @@ -12,7 +12,7 @@ class RpcResponderDemoService: class RpcCallerDemoService: name = "rpc_caller_demo_service" - remote = RpcProxy("rpc_responder_demo_service") + remote = ServiceRpc("rpc_responder_demo_service") @rpc def remote_hello(self, value="John Doe"):