diff --git a/blockservice/worker/worker.go b/blockservice/worker/worker.go index be46c45c8a7..eb5b1fc17ed 100644 --- a/blockservice/worker/worker.go +++ b/blockservice/worker/worker.go @@ -120,7 +120,8 @@ func (w *Worker) start(c Config) { // reads from |workerChan| until process closes w.process.Go(func(proc process.Process) { ctx := childContext(proc) // shut down in-progress HasBlock when time to die - limiter := ratelimit.NewRateLimiter(proc, c.NumWorkers) + limiter := ratelimit.NewRateLimiter(process.Background(), c.NumWorkers) + defer limiter.Close() for { select { case <-proc.Closing():