Release PyPI package

This commit is contained in:
Cyber MacGeddon 2024-07-15 21:40:49 +01:00
parent 742fca8e44
commit 178bd6943e
2 changed files with 5 additions and 4 deletions

View file

@ -20,6 +20,8 @@ class EmbeddingsClient:
pulsar_host="pulsar://pulsar:6650",
):
self.client = None
if client_id == None:
client_id = str(uuid.uuid4())
@ -64,7 +66,6 @@ class EmbeddingsClient:
def __del__(self):
self.producer.close()
self.consumer.close()
self.client.close()
if self.client:
self.client.close()