Skip to content

Commit

Permalink
Merge pull request #62 from depot/fix-health-check
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Feb 17, 2023
2 parents 860f37d + bb4c32f commit 7fc17ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/buildxdriver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ type tlsOpts struct {
}

func (d *Driver) Bootstrap(ctx context.Context, l progress.Logger) error {
err := d.startHealthcheck(context.Background())
if err != nil {
return err
}

builderInfo, err := d.builder.Acquire(l)
if err != nil {
return api.NewDepotError(errors.Wrap(err, "failed to bootstrap builder"))
Expand Down Expand Up @@ -90,11 +95,6 @@ func (d *Driver) Bootstrap(ctx context.Context, l progress.Logger) error {
return err
}
if info.Status != driver.Inactive {
err = d.startHealthcheck(context.Background())
if err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit 7fc17ca

Please sign in to comment.