it was such a simple function, I just removed it from the package.
signal.Notify(sigChan,syscall.SIGINT,syscall.SIGTERM)gofunc(){sig:=<-sigChanlog.Errorf("Signal received (%v), stopping",sig)cancel()}()
it was such a simple function, I just removed it from the package.
```go
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM)
go func() {
sig := <-sigChan
log.Errorf("Signal received (%v), stopping", sig)
cancel()
}()
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
@@ -223,3 +223,2 @@ctx, cancelCtx := context.WithCancel(context.Background())ctx, _ := context.WithCancel(context.Background())tracker := tracker.New(recoveryFile, iterCount)tracker.CaptureSignal(cancelCtx)What's the replacement scheme for CaptureSignal()?
it was such a simple function, I just removed it from the package.
But the context doesn't really do anything here (and never did), we need to add a bit more plumbing.
So is the "fix" of just dropping the line appropriate at the moment?
Yes, it can wait
I made a follow up PR. Also need to fix it for snapshots cerc-io/ipld-eth-state-snapshot#2