use requests instead of aiohttp for underlying http client (#803)

instead of starting and stopping the current thread's event loop on
every http call, just make an http call.
This commit is contained in:
Sebastian Law
2024-01-09 21:07:50 -08:00
committed by Andrew Miracle
parent 91d64d86e0
commit eda4c587fc
5 changed files with 72 additions and 93 deletions

View File

@@ -18,15 +18,15 @@ from lancedb.remote.client import VectorQuery, VectorQueryResult
class FakeLanceDBClient:
async def close(self):
def close(self):
pass
async def query(self, table_name: str, query: VectorQuery) -> VectorQueryResult:
def query(self, table_name: str, query: VectorQuery) -> VectorQueryResult:
assert table_name == "test"
t = pa.schema([]).empty_table()
return VectorQueryResult(t)
async def post(self, path: str):
def post(self, path: str):
pass