Skip to content

Commit

Permalink
Add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise committed Oct 1, 2024
1 parent b9ef45c commit 6f07fb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/startup_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def validate_settings() -> None:


async def wait_for_consensus_node() -> None:
"""
Waits until at least one endpoint in the list of consensus endpoints is available
"""
done = False
while True:
for consensus_endpoint in settings.consensus_endpoints:
Expand Down Expand Up @@ -73,6 +76,9 @@ async def wait_for_consensus_node() -> None:


async def wait_for_execution_node() -> None:
"""
Waits until at least one endpoint in the list of execution endpoints is available
"""
done = False
while True:
for execution_endpoint in settings.execution_endpoints:
Expand Down

0 comments on commit 6f07fb2

Please sign in to comment.