Skip to content

Commit

Permalink
fix: daemon server health check (#495)
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <[email protected]>
  • Loading branch information
Tpuljak authored May 7, 2024
1 parent bf3ca26 commit 71b7656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/server/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ var ServeCmd = &cobra.Command{

func waitForServerToStart(apiServer *api.ApiServer) error {
var err error
for i := 0; i < 3; i++ {
for i := 0; i < 30; i++ {
time.Sleep(1 * time.Second)
err = apiServer.HealthCheck()
if err != nil {
time.Sleep(3 * time.Second)
continue
}

Expand Down

0 comments on commit 71b7656

Please sign in to comment.