Skip to content

Commit

Permalink
fix: fix pinger wrong implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 23, 2024
1 parent b9345b7 commit dd2ad3f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions node/pkg/checker/ping/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,18 @@ func (app *App) Start(ctx context.Context) {
Success: false,
Delay: 0,
}

time.Sleep(DefaultReconnectInterval)
continue
} else {

app.ResultsBuffer <- PingResult{
Address: endpoint.Address,
Success: true,
Delay: 0,
}
return
}
time.Sleep(DefaultReconnectInterval)
continue
}
}
}(endpoint)
Expand Down

0 comments on commit dd2ad3f

Please sign in to comment.