예제 #1
0
파일: grpc.py 프로젝트: zeng4250538/idb
 async def contacts_update(self, contacts_path: str) -> None:
     async with self.get_stub() as stub:
         data = await create_tar([contacts_path])
         await stub.contacts_update(
             ContactsUpdateRequest(payload=Payload(data=data))
         )
예제 #2
0
async def client(client: CompanionClient, contacts_path: str) -> None:
    data = await create_tar([contacts_path])
    await client.stub.contacts_update(ContactsUpdateRequest(payload=Payload(data=data)))