Commit 1dbe9d82 authored by cui's avatar cui Committed by GitHub

refactor: using maps.Keys (#11547)

parent 5212c4db
......@@ -2,6 +2,7 @@ package compressor
import (
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"golang.org/x/exp/maps"
)
type FactoryFunc func(Config) (derive.Compressor, error)
......@@ -25,7 +26,5 @@ var Kinds = map[string]FactoryFunc{
var KindKeys []string
func init() {
for k := range Kinds {
KindKeys = append(KindKeys, k)
}
KindKeys = maps.Keys(Kinds)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment