Skip to content

Commit

Permalink
ethdb: remove unnecessary function wrapper (ethereum#29888)
Browse files Browse the repository at this point in the history
  • Loading branch information
suiyuan1314 authored and jorgemmsilva committed Jun 17, 2024
1 parent b7a7f8f commit aba0ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethdb/dbtest/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func makeDataset(size, ksize, vsize int, order bool) ([][]byte, [][]byte) {
vals = append(vals, randBytes(vsize))
}
if order {
slices.SortFunc(keys, func(a, b []byte) int { return bytes.Compare(a, b) })
slices.SortFunc(keys, bytes.Compare)
}
return keys, vals
}
2 changes: 1 addition & 1 deletion ethdb/pebble/pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool, e

// The default compaction concurrency(1 thread),
// 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
// options for the last level are used for all subsequent levels.
Expand Down

0 comments on commit aba0ddb

Please sign in to comment.