Skip to content

Commit

Permalink
chore: nonsense debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Dec 4, 2023
1 parent 55c7f78 commit aac8a9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions silverback/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def __init__(self, app: SilverbackApp, *args, **kwargs):
async def _block_task(self, block_handler: AsyncTaskiqDecoratedTask):
sub_id = await self.subscriptions.subscribe(SubscriptionType.BLOCKS)
logger.debug(f"Handling blocks via {sub_id}")
print("HELLO WORLD")

async for raw_block in self.subscriptions.get_subscription_data(sub_id):
logger.debug("Processing raw block:")
Expand Down Expand Up @@ -226,6 +227,8 @@ def __init__(self, app: SilverbackApp, *args, **kwargs):
)

async def _block_task(self, block_handler: AsyncTaskiqDecoratedTask):
logger.debug(f"Handling blocks via polling")
print("GOODBYE WORLD")
new_block_timeout = None
start_block = None
if "_blocks_" in self.app.poll_settings:
Expand Down

0 comments on commit aac8a9f

Please sign in to comment.