We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02711ec commit 53a6788Copy full SHA for 53a6788
hasura/hasura.go
@@ -22,10 +22,10 @@ const (
22
23
func checkHealth(ctx context.Context, api *API) {
24
log.Info().Msg("Waiting hasura is up and running")
25
- if err := api.Health(ctx); err != nil {
+ if err := api.Health(ctx); err == nil {
26
return
27
}
28
- ticker := time.NewTicker(time.Second)
+ ticker := time.NewTicker(time.Second * 5)
29
for {
30
select {
31
case <-ctx.Done():
0 commit comments