go-ethereum/cmd
Martin HS 767c202e47
all: drop x/exp direct dependency (#30558)
This is a not-particularly-important "cleanliness" PR. It removes the
last remnants of the `x/exp` package, where we used the `maps.Keys`
function.

The original returned the keys in a slice, but when it became 'native'
the signature changed to return an iterator, so the new idiom is
`slices.Collect(maps.Keys(theMap))`, unless of course the raw iterator
can be used instead.

In some cases, where we previously collect into slice and then sort, we
can now instead do `slices.SortXX` on the iterator instead, making the
code a bit more concise.

This PR might be _slighly_ less optimal, because the original `x/exp`
implementation allocated the slice at the correct size off the bat,
which I suppose the new code won't.

Putting it up for discussion.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
2025-02-27 15:53:52 +01:00
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen cmd/workload: RPC workload tests for filters and history (#31189) 2025-02-27 00:07:14 +01:00
blsync all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
clef build: replace `tenv` linter with `usetesting` (#31172) 2025-02-21 13:36:18 +01:00
devp2p all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
era cmd: use package filepath over path for file system operations (#29227) 2024-03-12 10:00:34 +01:00
ethkey cmd: fix some typos in readmes (#29405) 2024-04-11 14:06:49 +03:00
evm all: drop x/exp direct dependency (#30558) 2025-02-27 15:53:52 +01:00
geth all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
rlpdump build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
utils cmd/workload: RPC workload tests for filters and history (#31189) 2025-02-27 00:07:14 +01:00
workload cmd/workload: RPC workload tests for filters and history (#31189) 2025-02-27 00:07:14 +01:00