19146: Remove unneeded special case checks, explain the needed one.
[arvados.git] / lib / controller / cmd.go
index 0c46e857b3aa8604743575a5f0be37f022e6297c..96972251a3d18af5758e37cd7961ed586504a10a 100644 (file)
@@ -13,8 +13,9 @@ import (
        "github.com/prometheus/client_golang/prometheus"
 )
 
+// Command starts a controller service. See cmd/arvados-server/cmd.go
 var Command cmd.Handler = service.Command(arvados.ServiceNameController, newHandler)
 
-func newHandler(_ context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler {
-       return &Handler{Cluster: cluster}
+func newHandler(ctx context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler {
+       return &Handler{Cluster: cluster, BackgroundContext: ctx}
 }