Browse Source

Refactor arguments.go

renovate/configure
Yota Toyama 8 years ago
parent
commit
cd39a49809
  1. 7
      arguments.go

7
arguments.go

@ -9,16 +9,15 @@ import (
"github.com/docopt/docopt-go" "github.com/docopt/docopt-go"
) )
const maxConcurrency = 256
var defaultConcurrency = func() int { var defaultConcurrency = func() int {
const max = 256
n := 8 * runtime.NumCPU() // 8 is an empirical value. n := 8 * runtime.NumCPU() // 8 is an empirical value.
if n < maxConcurrency { if n < max {
return n return n
} }
return maxConcurrency return max
}() }()
const usage = `Link checker for Markdown and HTML const usage = `Link checker for Markdown and HTML

Loading…
Cancel
Save