Skip to content

Commit 0a3c007

Browse files
committed
rename
1 parent ea9c28e commit 0a3c007

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/experiment/compactor/compaction_worker.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ type Worker struct {
5050
}
5151

5252
type Config struct {
53-
JobConcurrency int `yaml:"job_capacity"`
54-
JobPollInterval time.Duration `yaml:"job_poll_interval"`
55-
SmallObjectSize int `yaml:"small_object_size_bytes"`
56-
TempDir string `yaml:"temp_dir"`
57-
RequestTimeout time.Duration `yaml:"request_timeout"`
53+
JobConcurrency int `yaml:"job_capacity"`
54+
JobPollInterval time.Duration `yaml:"job_poll_interval"`
55+
SmallObjectSize int `yaml:"small_object_size_bytes"`
56+
TempDir string `yaml:"temp_dir"`
57+
RequestTimeout time.Duration `yaml:"request_timeout"`
5858
MetricsExporterEnabled bool `yaml:"metrics_exporter_enabled"`
5959
}
6060

@@ -65,7 +65,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
6565
f.DurationVar(&cfg.RequestTimeout, prefix+"request-timeout", 5*time.Second, "Job request timeout.")
6666
f.IntVar(&cfg.SmallObjectSize, prefix+"small-object-size-bytes", 8<<20, "Size of the object that can be loaded in memory.")
6767
f.StringVar(&cfg.TempDir, prefix+"temp-dir", os.TempDir(), "Temporary directory for compaction jobs.")
68-
f.BoolVar(&cfg.EnableMetricsExporter, prefix+"metrics-exporter.enabled", false, "This parameter specifies whether the metrics exporter is enabled.")
68+
f.BoolVar(&cfg.MetricsExporterEnabled, prefix+"metrics-exporter.enabled", false, "This parameter specifies whether the metrics exporter is enabled.")
6969
}
7070

7171
type compactionJob struct {
@@ -403,7 +403,7 @@ func (w *Worker) runCompaction(job *compactionJob) {
403403
block.WithObjectMaxSizeLoadInMemory(w.config.SmallObjectSize),
404404
block.WithObjectDownload(sourcedir),
405405
),
406-
block.WithSampleObserver(newSampleObserver(w.config.EnableMetricsExporter, job)),
406+
block.WithSampleObserver(newSampleObserver(w.config.MetricsExporterEnabled, job)),
407407
)
408408
defer func() {
409409
if err = os.RemoveAll(tempdir); err != nil {

0 commit comments

Comments
 (0)