Skip to content

Commit

Permalink
Fix NumberOfWorkers param
Browse files Browse the repository at this point in the history
Make param upper case and shorten shorthand to one letter in order to follow POSIX style CLI configs

Co-authored-by: Philipp Böschen <[email protected]>
  • Loading branch information
frandelgado and catouc committed Jan 5, 2024
1 parent 378753b commit 060e0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/crawler/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Config struct {
HTTPClientMaxRetry int `conf:"default:2,short,m,env:HTTP_CLIENT_MAX_RETRY"`
HTTPClientMaxRetryWait time.Duration `conf:"default:30s,short:w,env:HTTP_CLIENT_MAX_RETRY_WAIT"`
HTTPClientMinRetryWait time.Duration `conf:"default:5s,short:n,env:HTTP_CLIENT_MIN_RETRY_WAIT"`
numberOfWorkers int `conf:"default:20,short:wr,env:NUMBER_OF_WORKERS"`
NumberOfWorkers int `conf:"default:20,short:c,env:NUMBER_OF_WORKERS"`
// There should be global config composition maybe? For not this lives here
// though this is the global log level
LogLevel int `conf:"default:1,env:LOG_LEVEL"`
Expand Down

0 comments on commit 060e0f1

Please sign in to comment.