minor cleanup

Former-commit-id: c821150c13183e9d0336acf9b9303ae5e2646037
This commit is contained in:
Camillo Schenone 2023-08-22 10:55:53 +02:00
parent 7609cecd40
commit c79529ce87
2 changed files with 1 additions and 27 deletions

View file

@ -1,4 +1,4 @@
use std::{sync::Arc, error::Error, borrow::BorrowMut}; use std::{sync::Arc, error::Error};
use codemp::{ use codemp::{
client::CodempClient, client::CodempClient,

26
test.py
View file

@ -1,26 +0,0 @@
import bindings.codemp_client
import asyncio
HOST = "http://alemi.dev:50051"
LOCAL_HOST = "http://[::1]:50051"
async def get_handle(host):
return await bindings.codemp_client.connect(host)
async def get_id(handle):
return await handle.get_id()
async def create_buffer(handle):
return await handle.create("test.py")
async def main():
handle = await bindings.codemp_client.connect(HOST)
print("Client Handle: ", handle)
id = await handle.get_id()
print("Client ID: ", id)
buffer_created = await create_buffer(handle)
print("buffer_created: ", buffer_created)
asyncio.run(main())