Remove janitor (#16)

* Remove controller's janitor

* Properly handle err == nil in mapErr() function
This commit is contained in:
Nikolay Edigaryev
2023-02-01 19:02:56 +04:00
committed by GitHub
parent 6bcc02d815
commit ab3ffe82fa
3 changed files with 7 additions and 64 deletions
-9
View File
@@ -79,15 +79,6 @@ func (controller *Controller) Run(ctx context.Context) error {
}
}()
// Run the janitor so that inactive workers
// will eventually be removed from the DB
go func() {
err := controller.runJanitor(controller.store)
if err != nil {
panic(err)
}
}()
// A helper function to shut down the HTTP server on context cancellation
go func() {
<-ctx.Done()