update nameke example

This commit is contained in:
BryantHe 2023-07-18 10:32:44 +08:00
parent ea5b4dfd2b
commit ebc84af7f7
1 changed files with 2 additions and 2 deletions

View File

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