diff --git a/cmd/drive/main.go b/cmd/drive/main.go index 81f6e1b2..aac54906 100644 --- a/cmd/drive/main.go +++ b/cmd/drive/main.go @@ -20,7 +20,7 @@ import ( "fmt" "os" "path/filepath" - + "runtime" "github.com/rakyll/command" "github.com/rakyll/drive" "github.com/rakyll/drive/config" @@ -37,6 +37,7 @@ const ( ) func main() { + runtime.GOMAXPROCS(runtime.NumCPU()) // Use all the machine's cores command.On("init", descInit, &initCmd{}, []string{}) command.On("pull", descPull, &pullCmd{}, []string{}) command.On("push", descPush, &pushCmd{}, []string{})