Fix bug with event chunking during initial ignore of events

This commit is contained in:
Sebastian Goscik
2023-10-31 17:47:59 +00:00
parent 60901e9a84
commit dc8473cc3d

View File

@@ -125,11 +125,9 @@ class MissingEventChecker:
async def ignore_missing(self): async def ignore_missing(self):
"""Ignore missing events by adding them to the event table.""" """Ignore missing events by adding them to the event table."""
wanted_events = await self._get_missing_events() logger.info(f" Ignoring missing events")
logger.info(f" Ignoring {len(wanted_events)} missing events") async for event in self._get_missing_events():
for event in wanted_events:
logger.extra_debug(f"Ignoring event '{event.id}'") logger.extra_debug(f"Ignoring event '{event.id}'")
await self._db.execute( await self._db.execute(
"INSERT INTO events VALUES " "INSERT INTO events VALUES "