removing runtime.GOMAXPROCS calls (#1947)

This commit is contained in:
Mike Gray
2016-07-01 17:42:46 -04:00
committed by GitHub
parent 2921ca343c
commit b2a4aa62b7
4 changed files with 0 additions and 11 deletions

View File

@@ -10,7 +10,6 @@ import (
"fmt"
"log"
"os"
"runtime"
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/noms/go/spec"
@@ -23,9 +22,6 @@ var (
)
func main() {
cpuCount := runtime.NumCPU()
runtime.GOMAXPROCS(cpuCount)
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "Moves datasets between or within databases\n\n")
fmt.Fprintf(os.Stderr, "noms sync [options] <source-object> <dest-dataset>\n\n")

View File

@@ -9,7 +9,6 @@ import (
"flag"
"fmt"
"os"
"runtime"
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/noms/go/spec"
@@ -25,8 +24,6 @@ var (
func main() {
spec.RegisterDatabaseFlags()
cpuCount := runtime.NumCPU()
runtime.GOMAXPROCS(cpuCount)
flag.Usage = func() {
fmt.Fprintln(os.Stderr, "Usage: csv-export [options] dataset > filename")

View File

@@ -10,7 +10,6 @@ import (
"io"
"os"
"regexp"
"runtime"
"strconv"
"strings"
"time"
@@ -45,8 +44,6 @@ func main() {
)
spec.RegisterDatabaseFlags()
cpuCount := runtime.NumCPU()
runtime.GOMAXPROCS(cpuCount)
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage: csv-import [options] <dataset> <csvfile>\n\n")

View File

@@ -65,7 +65,6 @@ func main() {
defer profile.MaybeStartProfile().Stop()
cpuCount := runtime.NumCPU()
runtime.GOMAXPROCS(cpuCount)
filesChan := make(chan fileIndex, 1024)
refsChan := make(chan refIndex, 1024)