fix: skip health check for go-waku (#36)

This commit is contained in:
Roman Zajic 2024-05-09 21:53:03 +08:00 committed by GitHub
parent 06281de7c8
commit b9ec0bb1d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -208,12 +208,13 @@ class WakuNode:
logger.info("Node protocols are initialized !!")
@retry(stop=stop_after_delay(5), wait=wait_fixed(0.1), reraise=True)
@retry(stop=stop_after_delay(timeout_duration), wait=wait_fixed(0.1), reraise=True)
def check_ready(node=self):
node.info_response = node.info()
logger.info("REST service is ready !!")
check_healthy()
if self.is_nwaku():
check_healthy()
check_ready()
def get_enr_uri(self):