Skip to content

Commit

Permalink
fix: explicit timeout declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
bregydoc committed Feb 7, 2022
1 parent b6dfd01 commit 5d22899
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"log"
"os"
"time"

hasura "github.com/minskylab/ent-hasura"
"github.com/pkg/errors"
Expand Down Expand Up @@ -108,6 +109,7 @@ func applyCommand(c *cli.Context) error {

run, err := hasura.NewRuntime(
hasura.WithEnvFilepath(envFile),
hasura.WithTimeout(10*time.Minute),
)
if err != nil {
return errors.WithStack(err)
Expand Down

0 comments on commit 5d22899

Please sign in to comment.