Skip to content

Commit

Permalink
bump sei-cosmos to use capped cachekv (#441)
Browse files Browse the repository at this point in the history
* bump sei-cosmos to use capped cachekv

* v0.1.317
  • Loading branch information
codchen authored Dec 3, 2022
1 parent 61a3e79 commit 6ca40a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion aclmapping/utils/test_utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package utils

import sdk "github.com/cosmos/cosmos-sdk/types"
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

func CacheTxContext(ctx sdk.Context) (sdk.Context, sdk.CacheMultiStore) {
ms := ctx.MultiStore()
Expand Down
2 changes: 1 addition & 1 deletion store/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func NewTestKVStore() types.KVStore {
mem := dbadapter.Store{DB: dbm.NewMemDB()}
return cachekv.NewStore(mem, storetypes.NewKVStoreKey("test"), 100)
return cachekv.NewStore(mem, storetypes.NewKVStoreKey("test"), storetypes.DefaultCacheSizeLimit)
}

func NewTestCacheMultiStore(stores map[types.StoreKey]types.CacheWrapper) types.CacheMultiStore {
Expand Down

0 comments on commit 6ca40a7

Please sign in to comment.