@@ -70,8 +70,8 @@ func (cs compactionSet) maxLevel() int {
7070}
7171
7272func registerCompact (m map [string ]setupFunc , app * kingpin.Application ) {
73- component := component .Compact
74- cmd := app .Command (component .String (), "continuously compacts blocks in an object store bucket" )
73+ comp := component .Compact
74+ cmd := app .Command (comp .String (), "continuously compacts blocks in an object store bucket" )
7575
7676 haltOnError := cmd .Flag ("debug.halt-on-error" , "Halt the process if a critical compaction error is detected." ).
7777 Hidden ().Default ("true" ).Bool ()
@@ -113,7 +113,7 @@ func registerCompact(m map[string]setupFunc, app *kingpin.Application) {
113113 compactionConcurrency := cmd .Flag ("compact.concurrency" , "Number of goroutines to use when compacting groups." ).
114114 Default ("1" ).Int ()
115115
116- m [component .String ()] = func (g * run.Group , logger log.Logger , reg * prometheus.Registry , tracer opentracing.Tracer , _ bool ) error {
116+ m [comp .String ()] = func (g * run.Group , logger log.Logger , reg * prometheus.Registry , tracer opentracing.Tracer , _ bool ) error {
117117 return runCompact (g , logger , reg ,
118118 * httpAddr ,
119119 * dataDir ,
@@ -128,7 +128,7 @@ func registerCompact(m map[string]setupFunc, app *kingpin.Application) {
128128 compact .ResolutionLevel5m : time .Duration (* retention5m ),
129129 compact .ResolutionLevel1h : time .Duration (* retention1h ),
130130 },
131- component ,
131+ comp ,
132132 * disableDownsampling ,
133133 * maxCompactionLevel ,
134134 * blockSyncConcurrency ,
0 commit comments