Skip to content

Commit

Permalink
STAC-21470: Fix command line
Browse files Browse the repository at this point in the history
  • Loading branch information
craffit committed Aug 20, 2024
1 parent c23d5aa commit 99ef139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Additional targets are configured via PUT/DELETE on the '/targets?url=<endpoint>
cmd.Flags().String("password", "", "Password to protect the configuration 'targets' endpoint with.")
cmd.Flags().String("passwordFile", "", "Provide a file that contains username/password to protect the configuration 'targets' endpoint. Contains 1 username/password combination separated by ':'.")
cmd.Flags().Int("fail-after", 30, "Remove a target when it has been failing for this many minutes.") //nolint:gomnd
cmd.Flags().Int("max-queued-requests", 500, "Maximum amount of requests queued per mirror.") //nolint:gomnd
cmd.Flags().Int("retry-after", 1, "After 5 successive failures a target is temporarily disabled, it will be retried after this many minutes.")
cmd.Flags().StringSlice("mirror", []string{}, "Start with mirroring traffic to provided targets")

Expand Down
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Config struct {
PersistentFailureTimeout int `yaml:"fail-after" default:"30"`
RetryAfter int `yaml:"retry-after" default:"1"`
Mirrors []string `yaml:"mirror"`
MaxQueuedRequests int `yaml:"maxQueuedRequests" default:"500"`
MaxQueuedRequests int `yaml:"max-queued-requests" default:"500"`
}

func (s *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
Expand Down

0 comments on commit 99ef139

Please sign in to comment.