Skip to content

Commit

Permalink
feat: use os.Exit
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 22, 2024
1 parent 9a5e086 commit fb57a29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions node/cmd/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fb57a29

Please sign in to comment.