Skip to content

Commit

Permalink
remove unused cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
salvacorts committed Nov 21, 2024
1 parent 685e871 commit bb2c7c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions docs/sources/shared/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1269,10 +1269,6 @@ builder:
# Number of times to backoff and retry before failing.
# CLI flag: -bloom-build.builder.backoff.backoff-retries
[max_retries: <int> | default = 10]

# Prefetch blocks on gateways as soon as they are built
# CLI flag: -bloom-build.builder.prefetch-blocks-on-gateway
[prefetch_blocks_on_gateway: <boolean> | default = false]
```
### bloom_gateway
Expand Down
10 changes: 4 additions & 6 deletions pkg/bloombuild/builder/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ import (

// Config configures the bloom-builder component.
type Config struct {
GrpcConfig grpcclient.Config `yaml:"grpc_config"`
PlannerAddress string `yaml:"planner_address"`
BackoffConfig backoff.Config `yaml:"backoff_config"`
WorkingDir string `yaml:"working_directory" doc:"hidden"`
PrefetchBlocksOnGateway bool `yaml:"prefetch_blocks_on_gateway"`
GrpcConfig grpcclient.Config `yaml:"grpc_config"`
PlannerAddress string `yaml:"planner_address"`
BackoffConfig backoff.Config `yaml:"backoff_config"`
WorkingDir string `yaml:"working_directory" doc:"hidden"`
}

// RegisterFlagsWithPrefix registers flags for the bloom-planner configuration.
Expand All @@ -24,7 +23,6 @@ func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) {
cfg.GrpcConfig.RegisterFlagsWithPrefix(prefix+".grpc", f)
cfg.BackoffConfig.RegisterFlagsWithPrefix(prefix+".backoff", f)
f.StringVar(&cfg.WorkingDir, prefix+".working-directory", "", "Working directory to which blocks are temporarily written to. Empty string defaults to the operating system's temp directory.")
f.BoolVar(&cfg.PrefetchBlocksOnGateway, prefix+".prefetch-blocks-on-gateway", false, "Prefetch blocks on gateways as soon as they are built")
}

func (cfg *Config) Validate() error {
Expand Down

0 comments on commit bb2c7c2

Please sign in to comment.