From c79529ce87f5e87d1212f1b700e448d718f2af72 Mon Sep 17 00:00:00 2001 From: Camillo Schenone Date: Tue, 22 Aug 2023 10:55:53 +0200 Subject: [PATCH] minor cleanup Former-commit-id: c821150c13183e9d0336acf9b9303ae5e2646037 --- src/lib.rs | 2 +- test.py | 26 -------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 test.py diff --git a/src/lib.rs b/src/lib.rs index a675f47..f42586a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -use std::{sync::Arc, error::Error, borrow::BorrowMut}; +use std::{sync::Arc, error::Error}; use codemp::{ client::CodempClient, diff --git a/test.py b/test.py deleted file mode 100644 index 113a965..0000000 --- a/test.py +++ /dev/null @@ -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())