mirror of
https://gitea.bearcatlog.com/Bryant/chassis
synced 2025-01-18 18:25:21 +08:00
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:
|
||||
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user