Skip to content

Commit 53a6788

Browse files
Fix: hasura health check
1 parent 02711ec commit 53a6788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hasura/hasura.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ const (
2222

2323
func checkHealth(ctx context.Context, api *API) {
2424
log.Info().Msg("Waiting hasura is up and running")
25-
if err := api.Health(ctx); err != nil {
25+
if err := api.Health(ctx); err == nil {
2626
return
2727
}
28-
ticker := time.NewTicker(time.Second)
28+
ticker := time.NewTicker(time.Second * 5)
2929
for {
3030
select {
3131
case <-ctx.Done():

0 commit comments

Comments
 (0)