ethdb: remove unnecessary function wrapper (#29888)

pull/29890/head
SuiYuan 6 months ago committed by GitHub
parent 6bb13e8e2b
commit e015c1116f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ethdb/dbtest/testsuite.go
  2. 2
      ethdb/pebble/pebble.go

@ -530,7 +530,7 @@ func makeDataset(size, ksize, vsize int, order bool) ([][]byte, [][]byte) {
vals = append(vals, randBytes(vsize)) vals = append(vals, randBytes(vsize))
} }
if order { if order {
slices.SortFunc(keys, func(a, b []byte) int { return bytes.Compare(a, b) }) slices.SortFunc(keys, bytes.Compare)
} }
return keys, vals return keys, vals
} }

@ -207,7 +207,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool, e
// The default compaction concurrency(1 thread), // The default compaction concurrency(1 thread),
// Here use all available CPUs for faster compaction. // Here use all available CPUs for faster compaction.
MaxConcurrentCompactions: func() int { return runtime.NumCPU() }, MaxConcurrentCompactions: runtime.NumCPU,
// Per-level options. Options for at least one level must be specified. The // Per-level options. Options for at least one level must be specified. The
// options for the last level are used for all subsequent levels. // options for the last level are used for all subsequent levels.

Loading…
Cancel
Save