From 232443d1319fc071233257b9f20fb171c9ffd4d4 Mon Sep 17 00:00:00 2001 From: Kate Yeh Date: Tue, 30 Apr 2024 10:51:08 -0700 Subject: [PATCH] style change --- agentops/worker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/agentops/worker.py b/agentops/worker.py index fafd3b2b..acb9393c 100644 --- a/agentops/worker.py +++ b/agentops/worker.py @@ -21,13 +21,11 @@ def __init__(self, config: Configuration) -> None: def add_event(self, event: dict) -> None: with self.lock: - found = False # Flag to track if event is found and updated for existing_event in self.queue: if existing_event.get('id') == event.get('id'): existing_event.update(event) - found = True break - if not found: + else: self.queue.append(event) if len(self.queue) >= self.config.max_queue_size: self.flush_queue()