@@ -4,16 +4,16 @@ import (
4
4
"context"
5
5
"errors"
6
6
"fmt"
7
+ "maps"
7
8
"math"
8
- "sort "
9
+ "slices "
9
10
"strconv"
10
11
"sync"
11
12
12
13
abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
13
14
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
14
15
"github.com/cometbft/cometbft/crypto/tmhash"
15
16
"github.com/cosmos/gogoproto/proto"
16
- "golang.org/x/exp/maps"
17
17
"google.golang.org/protobuf/reflect/protoreflect"
18
18
19
19
"cosmossdk.io/core/header"
@@ -336,8 +336,7 @@ func (app *BaseApp) MountTransientStores(keys map[string]*storetypes.TransientSt
336
336
// MountMemoryStores mounts all in-memory KVStores with the BaseApp's internal
337
337
// commit multi-store.
338
338
func (app * BaseApp ) MountMemoryStores (keys map [string ]* storetypes.MemoryStoreKey ) {
339
- skeys := maps .Keys (keys )
340
- sort .Strings (skeys )
339
+ skeys := slices .Sorted (maps .Keys (keys ))
341
340
for _ , key := range skeys {
342
341
memKey := keys [key ]
343
342
app .MountStore (memKey , storetypes .StoreTypeMemory )
@@ -347,8 +346,7 @@ func (app *BaseApp) MountMemoryStores(keys map[string]*storetypes.MemoryStoreKey
347
346
// MountObjectStores mounts all transient object stores with the BaseApp's internal
348
347
// commit multi-store.
349
348
func (app * BaseApp ) MountObjectStores (keys map [string ]* storetypes.ObjectStoreKey ) {
350
- skeys := maps .Keys (keys )
351
- sort .Strings (skeys )
349
+ skeys := slices .Sorted (maps .Keys (keys ))
352
350
for _ , key := range skeys {
353
351
memKey := keys [key ]
354
352
app .MountStore (memKey , storetypes .StoreTypeObject )
0 commit comments