refactor: remove x/exp dep (#21281)
This commit is contained in:
+3
-4
@@ -4,8 +4,9 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"maps"
|
||||
"math"
|
||||
"sort"
|
||||
"slices"
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
@@ -14,7 +15,6 @@ import (
|
||||
"github.com/cometbft/cometbft/crypto/tmhash"
|
||||
dbm "github.com/cosmos/cosmos-db"
|
||||
"github.com/cosmos/gogoproto/proto"
|
||||
"golang.org/x/exp/maps"
|
||||
"google.golang.org/protobuf/reflect/protoreflect"
|
||||
|
||||
"cosmossdk.io/core/header"
|
||||
@@ -340,8 +340,7 @@ func (app *BaseApp) MountTransientStores(keys map[string]*storetypes.TransientSt
|
||||
// MountMemoryStores mounts all in-memory KVStores with the BaseApp's internal
|
||||
// commit multi-store.
|
||||
func (app *BaseApp) MountMemoryStores(keys map[string]*storetypes.MemoryStoreKey) {
|
||||
skeys := maps.Keys(keys)
|
||||
sort.Strings(skeys)
|
||||
skeys := slices.Sorted(maps.Keys(keys))
|
||||
for _, key := range skeys {
|
||||
memKey := keys[key]
|
||||
app.MountStore(memKey, storetypes.StoreTypeMemory)
|
||||
|
||||
Reference in New Issue
Block a user