diff --git a/internal/cmd/worker.go b/internal/cmd/worker.go index 514a8a8..5c7d118 100644 --- a/internal/cmd/worker.go +++ b/internal/cmd/worker.go @@ -62,6 +62,7 @@ func WorkerCmd(ctx context.Context) *cobra.Command { if err != nil { return err } + defer fp.Close() mgr := faktoryworker.NewManager() mgr.Concurrency = consumers