mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-09 03:09:12 -06:00
removing runtime.GOMAXPROCS calls (#1947)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user