mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
Minor QA changes
1) Add ability to enable all pairs using the new pair manager 2) Add abiity to enable/disable database subsystem via gRPC 3) Fix spelling mistakes
This commit is contained in:
@@ -16,9 +16,9 @@ var (
|
||||
)
|
||||
|
||||
// AdjustGoMaxProcs sets the runtime GOMAXPROCS val
|
||||
// Since Go 1.5, Go will use the total number of logical processers that the
|
||||
// Since Go 1.5, Go will use the total number of logical processors that the
|
||||
// system has available. Caveats to this are if someone has set the GOMAXPROCS
|
||||
// env var set or wish to limit usage of the number of logical processers
|
||||
// env var set or wish to limit usage of the number of logical processors
|
||||
// between a range from 1 to NumCPUs
|
||||
func AdjustGoMaxProcs(procs int) error {
|
||||
// Check for default settings, plus respecting GOMAXPROCS env but
|
||||
|
||||
@@ -51,7 +51,7 @@ func TestAdjustGoMaxProcs(t *testing.T) {
|
||||
|
||||
for x := range tester {
|
||||
if err := checker(tester[x].Setting, tester[x].Expected); err != nil {
|
||||
t.Errorf("%d failed. %s", tester[x], err)
|
||||
t.Errorf("%d failed. %s", x, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user