Skip to content

Commit 6364f94

Browse files
add tokenRegCacheSize const
1 parent 3603bd0 commit 6364f94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x/leverage/keeper/keeper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ func NewKeeper(
3737
paramSpace = paramSpace.WithKeyTable(types.ParamKeyTable())
3838
}
3939

40-
tokenRegCache, err := simplelru.NewLRU(100, nil)
40+
const tokenRegCacheSize = 100
41+
tokenRegCache, err := simplelru.NewLRU(tokenRegCacheSize, nil)
4142
if err != nil {
4243
return Keeper{}, err
4344
}

0 commit comments

Comments
 (0)