Merge pull request #126 from cerc-io/ian/v5_dev

revert to using os.Interrupt
This commit is contained in:
Ian Norden 2023-04-09 14:33:19 -05:00 committed by GitHub
commit 0a92769bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()