Skip to content

Commit

Permalink
Fix setting handler config parent
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Aug 13, 2024
1 parent 012712b commit 5db600d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dipdup/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,12 @@ async def _spawn_index(
raise NotImplementedError

for handler_config in index_config.handlers:
handler_config.parent = index_config
self.register_handler(handler_config)
batch_handler = BatchHandlerConfig()
batch_handler.parent = index_config
self.register_handler(batch_handler)

batch_handler = BatchHandlerConfig()
batch_handler.parent = index_config
self.register_handler(batch_handler)

await index.initialize_state(state)

Expand Down

0 comments on commit 5db600d

Please sign in to comment.