Skip to content

Commit

Permalink
fix cli arg and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
dropwhile committed Jun 18, 2024
1 parent 1bc2ce6 commit 4283834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/go-camo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type CLI struct {
MaxSize int64 `name:"max-size" help:"Max allowed response size (KB)"`
ReqTimeout time.Duration `name:"timeout" default:"4s" help:"Upstream request timeout"`
MaxRedirects int `name:"max-redirects" default:"3" help:"Maximum number of redirects to follow"`
MaxSizeRedirect string `long:"max-size-redirect" description:"URL to redirect when max-size is exceeded"`
MaxSizeRedirect string `name:"max-size-redirect" description:"URL to redirect when max-size is exceeded"`
Metrics bool `name:"metrics" help:"Enable Prometheus compatible metrics endpoint"`
NoDebugVars bool `name:"no-debug-vars" help:"Disable the /debug/vars/ metrics endpoint. This option has no effects when the metrics are not enabled."`
NoLogTS bool `name:"no-log-ts" help:"Do not add a timestamp to logging"`
Expand Down Expand Up @@ -228,7 +228,7 @@ func (cli *CLI) Run() {
config.MaxSize = cli.MaxSize * 1024
config.RequestTimeout = cli.ReqTimeout
config.MaxRedirects = cli.MaxRedirects
config.MaxSizeRedirect = cli.MaxSizeRedirect
config.MaxSizeRedirect = cli.MaxSizeRedirect
config.ServerName = ServerName

// configure metrics collection in camo
Expand Down

0 comments on commit 4283834

Please sign in to comment.