Skip to content

Commit

Permalink
Fix: start timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Feb 18, 2025
1 parent 5afaa8b commit 66d268e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/indexer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"os/signal"
"syscall"
"time"

"github.com/dipdup-net/indexer-sdk/pkg/modules"
"github.com/dipdup-net/indexer-sdk/pkg/modules/stopper"
Expand All @@ -31,6 +32,7 @@ func main() {
app := fx.New(
fx.WithLogger(fxlogger.WithZerolog(log.Logger)),
fx.Supply(cancel),
fx.StartTimeout(5*time.Minute),
fx.Provide(
loadConfig,
newProflier,
Expand Down
2 changes: 2 additions & 0 deletions cmd/private_api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os"
"os/signal"
"syscall"
"time"

"github.com/celenium-io/astria-indexer/cmd/private_api/handler"
"github.com/celenium-io/astria-indexer/internal/storage"
Expand All @@ -25,6 +26,7 @@ var rootCmd = &cobra.Command{
func main() {
app := fx.New(
fx.WithLogger(fxlogger.WithZerolog(log.Logger)),
fx.StartTimeout(5*time.Minute),
fx.Provide(
loadConfig,

Expand Down

0 comments on commit 66d268e

Please sign in to comment.