From 8bcb2c312f295b81c16f8096bc844c6b2fd8d838 Mon Sep 17 00:00:00 2001 From: i-norden Date: Sun, 9 Apr 2023 14:26:21 -0500 Subject: [PATCH] revert to using os.Interrupt --- cmd/serve.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/serve.go b/cmd/serve.go index 6f725e2..6ba7b7d 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -22,7 +22,6 @@ import ( "os/signal" "runtime" "sync" - "syscall" "github.com/ethereum/go-ethereum/rpc" "github.com/sirupsen/logrus" @@ -114,7 +113,7 @@ func serve() { // clean shutdown shutdown := make(chan os.Signal) - signal.Notify(shutdown, syscall.SIGINT) + signal.Notify(shutdown, os.Interrupt) <-shutdown logWithCommand.Info("Received interrupt signal, shutting down") statediffService.Stop()