Skip to content

Commit

Permalink
bootstrap Start() got replaced with Run()
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Aug 31, 2024
1 parent 14ec287 commit 1c6841f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions internal/evm/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,15 @@ var gatewayCommand = &command.Command{

ctx, cancel := context.WithCancel(context.Background())

err = bootstrap.Start(ctx, cfg)
if err != nil {
panic(err)
}
ready := make(chan struct{})
go func() {
err = bootstrap.Run(ctx, cfg, ready)
if err != nil {
panic(err)
}
}()

<-ready

osSig := make(chan os.Signal, 1)
signal.Notify(osSig, syscall.SIGINT, syscall.SIGTERM)
Expand Down

0 comments on commit 1c6841f

Please sign in to comment.