Skip to content

Commit

Permalink
set default Concurrency to 512
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Ma committed Jun 22, 2021
1 parent 8e9278c commit a4dfc53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ func configParse(b []byte) (*config, error) {
cfg.Timeout = 10 * time.Second
}

if cfg.Concurrency == 0 {
cfg.Concurrency = 512
}

if cfg.Tenant.Header == "" {
cfg.Tenant.Header = "X-Scope-OrgID"
}
Expand Down

0 comments on commit a4dfc53

Please sign in to comment.