Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagara committed Nov 29, 2023
1 parent 4eb66b1 commit e379aba
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions arroyo/dlq.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,19 @@ def __init__(
) -> None:
self.MAX_PENDING_FUTURES = 1000 # This is a per partition max
self.__dlq_policy = policy
if policy:
self.__futures: MutableMapping[
Partition,
Deque[
Tuple[
BrokerValue[TStrategyPayload],
Future[BrokerValue[TStrategyPayload]],
]
],
] = defaultdict(deque)
if policy is None:
return

self.__futures: MutableMapping[
Partition,
Deque[
Tuple[
BrokerValue[TStrategyPayload],
Future[BrokerValue[TStrategyPayload]],
]
],
] = defaultdict(deque)
self.reset_offsets({})

def reset_offsets(self, assignment: Mapping[Partition, int]) -> None:
"""
Expand Down

0 comments on commit e379aba

Please sign in to comment.