Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Nov 7, 2024
1 parent 8c0c4c6 commit 03ae87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion literalai/event_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class EventProcessor:
batch_timeout: float = 5.0

def __init__(self, api: "LiteralAPI", batch_size: int = 1, disabled: bool = False):
self.stop_event = threading.Event()
self.batch_size = batch_size
self.api = api
self.event_queue = queue.Queue()
Expand All @@ -44,7 +45,6 @@ def __init__(self, api: "LiteralAPI", batch_size: int = 1, disabled: bool = Fals
)
if not self.disabled:
self.processing_thread.start()
self.stop_event = threading.Event()

def add_event(self, event: "StepDict"):
with self.counter_lock:
Expand Down

0 comments on commit 03ae87c

Please sign in to comment.