forked from TrueCloudLab/frostfs-node
[#5] morph/client: Use generic LRU cache
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
d8fb9c85eb
commit
55b403e0ee
5 changed files with 9 additions and 5 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
lru "github.com/hashicorp/golang-lru/v2"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/native/noderoles"
|
||||
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
|
||||
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||||
|
@ -96,7 +96,7 @@ type cache struct {
|
|||
|
||||
nnsHash *util.Uint160
|
||||
gKey *keys.PublicKey
|
||||
txHeights *lru.Cache
|
||||
txHeights *lru.Cache[util.Uint256, uint32]
|
||||
}
|
||||
|
||||
func (c cache) nns() *util.Uint160 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue