Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Nov 10, 2023
1 parent 21bb8cd commit 44d0df6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/chainsimulator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"os/signal"
"syscall"
"time"

"github.com/multiversx/mx-chain-core-go/core"
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 44d0df6

Please sign in to comment.