From 1c6841f01ddc79f89c4727daa167f2c53caa4e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Fri, 30 Aug 2024 17:20:29 -0700 Subject: [PATCH] bootstrap Start() got replaced with Run() --- internal/evm/gateway.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/internal/evm/gateway.go b/internal/evm/gateway.go index d6ebb67ed..59cc1f885 100644 --- a/internal/evm/gateway.go +++ b/internal/evm/gateway.go @@ -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)