Skip to content

Commit ed91fdb

Browse files
committed
fix compact: minor fixes
1 parent 44edd9d commit ed91fdb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmd/thanos/compact.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ func (cs compactionSet) maxLevel() int {
7070
}
7171

7272
func 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,

cmd/thanos/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ func defaultHTTPListener(g *run.Group, logger log.Logger, reg *prometheus.Regist
347347
}
348348

349349
g.Add(func() error {
350-
level.Info(logger).Log("msg", "Listening for metrics", "address", httpBindAddr)
350+
level.Info(logger).Log("msg", "listening for metrics", "address", httpBindAddr)
351351
readinessProber.SetHealthy()
352352
return errors.Wrap(http.Serve(l, mux), "serve metrics")
353353
}, func(err error) {

0 commit comments

Comments
 (0)