Skip to content

Commit

Permalink
Close window after popping the value from store (#137)
Browse files Browse the repository at this point in the history
Co-authored-by: Vatsal Parekh <vatsal.parekh@egen.solutions>
  • Loading branch information
VatsalP and Vatsal Parekh authored Apr 26, 2021
1 parent ec3ac3e commit a7aabfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions faust/tables/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ async def _del_old_keys(self) -> None:
if keys_to_remove:
for key in keys_to_remove:
value = self.data.pop(key, None)
if key[1][0] > self.last_closed_window:
await self.on_window_close(key, value)
await self.on_window_close(key, value)
self.last_closed_window = max(
self.last_closed_window,
max(key[1][0] for key in keys_to_remove),
Expand Down

0 comments on commit a7aabfd

Please sign in to comment.