From 44d0df6c155fd96b41f1092dee01e91c8ba79490 Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Fri, 10 Nov 2023 12:18:40 +0200 Subject: [PATCH] fix linter --- cmd/chainsimulator/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/chainsimulator/main.go b/cmd/chainsimulator/main.go index 64d77b75..6e7db336 100644 --- a/cmd/chainsimulator/main.go +++ b/cmd/chainsimulator/main.go @@ -4,6 +4,7 @@ import ( "fmt" "os" "os/signal" + "syscall" "time" "github.com/multiversx/mx-chain-core-go/core" @@ -129,9 +130,9 @@ func startChainSimulator(ctx *cli.Context) error { return err } - quit := make(chan os.Signal) - signal.Notify(quit, os.Interrupt, os.Kill) - <-quit + interrupt := make(chan os.Signal, 1) + signal.Notify(interrupt, syscall.SIGINT, syscall.SIGTERM) + <-interrupt log.Info("close") err = simulator.Close()