From fb57a292416bd437a02d8fd31b8656d568dbbaab Mon Sep 17 00:00:00 2001 From: nick Date: Fri, 23 Aug 2024 00:39:56 +0900 Subject: [PATCH] feat: use os.Exit --- node/cmd/node/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/node/cmd/node/main.go b/node/cmd/node/main.go index b19ae6f75..aa8cbf497 100644 --- a/node/cmd/node/main.go +++ b/node/cmd/node/main.go @@ -20,13 +20,11 @@ import ( func main() { ctx := context.Background() - ctx, cancel := context.WithCancel(ctx) - defer cancel() go func() { time.Sleep(5 * time.Second) // give some buffer until the app is ready ping.Run(ctx) - cancel() + os.Exit(1) }() err := logscribeconsumer.Start(ctx, "node")