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"):