Skip to content

Commit

Permalink
Restore the correct loop for check/retries.
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Matthews <[email protected]>
  • Loading branch information
TrevorBenson and adamsthws authored Jan 14, 2025
1 parent 74aa459 commit 1eda07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/docker/node/addons/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ check_node() {
URL="${KOIOS_API}/tip"
SECOND=$($CURL -s "${URL}" | $JQ '.[0].block_no')

for (( CHECK=1; CHECK<=HEALTHCHECK_RETRIES; CHECK++ )); do
for (( CHECK=0; CHECK<=HEALTHCHECK_RETRIES; CHECK++ )); do
if [[ "$FIRST" -eq "$SECOND" ]]; then
echo "We're healthy - node: $FIRST == koios: $SECOND"
return 0
Expand Down

0 comments on commit 1eda07b

Please sign in to comment.