示例#1
0
文件: rpc.py 项目: phamhieu/ccnet
 def __init__(self, ccnet_client_pool, service_name, retry_num=1,
              is_remote=False, remote_peer_id='', req_pool=False):
     SearpcClient.__init__(self)
     self.pool = ccnet_client_pool
     self.service_name = service_name
     self.retry_num = retry_num
     self.is_remote = is_remote
     self.remote_peer_id = remote_peer_id
     self.req_pool = req_pool
     if self.is_remote and len(self.remote_peer_id) != 40:
         raise ValueError("Invalid remote peer id")
示例#2
0
文件: rpc.py 项目: aukaost/ccnet
 def __init__(self, ccnet_client_pool, service_name, retry_num=1,
              is_remote=False, remote_peer_id='', req_pool=False):
     SearpcClient.__init__(self)
     self.pool = ccnet_client_pool
     self.service_name = service_name
     self.retry_num = retry_num
     self.is_remote = is_remote
     self.remote_peer_id = remote_peer_id
     self.req_pool = req_pool
     if self.is_remote and len(self.remote_peer_id) != 40:
         raise ValueError("Invalid remote peer id")