update nameke example
This commit is contained in:
parent
ea5b4dfd2b
commit
ebc84af7f7
|
@ -1,4 +1,4 @@
|
||||||
from nameko.rpc import rpc, RpcProxy
|
from nameko.rpc import rpc, ServiceRpc
|
||||||
|
|
||||||
|
|
||||||
class RpcResponderDemoService:
|
class RpcResponderDemoService:
|
||||||
|
@ -12,7 +12,7 @@ class RpcResponderDemoService:
|
||||||
class RpcCallerDemoService:
|
class RpcCallerDemoService:
|
||||||
name = "rpc_caller_demo_service"
|
name = "rpc_caller_demo_service"
|
||||||
|
|
||||||
remote = RpcProxy("rpc_responder_demo_service")
|
remote = ServiceRpc("rpc_responder_demo_service")
|
||||||
|
|
||||||
@rpc
|
@rpc
|
||||||
def remote_hello(self, value="John Doe"):
|
def remote_hello(self, value="John Doe"):
|
||||||
|
|
Loading…
Reference in New Issue