Skip to content

Commit

Permalink
refactor: rename to avoid accidental conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mathislucka committed Feb 5, 2025
1 parent 3ded49f commit 4564c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haystack/core/pipeline/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def push(self, item: Any, priority: int) -> None:
:param priority:
Priority level for the item. Lower numbers indicate higher priority.
"""
count = next(self._counter)
entry = (priority, count, item)
next_count = next(self._counter)
entry = (priority, next_count, item)
heapq.heappush(self._queue, entry)

def pop(self) -> Tuple[int, Any]:
Expand Down

0 comments on commit 4564c3a

Please sign in to comment.