From 5db600d7360c2b0968288548913d28c13c4d32fe Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Tue, 13 Aug 2024 13:27:43 -0300 Subject: [PATCH] Fix setting handler config parent --- src/dipdup/context.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dipdup/context.py b/src/dipdup/context.py index 712d5bb9e..d16e059b9 100644 --- a/src/dipdup/context.py +++ b/src/dipdup/context.py @@ -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)