[#1377] oid, cid: Upgrade SDK package

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-05-12 19:37:46 +03:00 committed by LeL
parent f65898a354
commit f15e6e888f
118 changed files with 1455 additions and 886 deletions

View file

@ -134,14 +134,14 @@ func newCachedContainerStorage(v container.Source) *ttlContainerStorage {
)
lruCnrCache := newNetworkTTLCache(containerCacheSize, containerCacheTTL, func(key interface{}) (interface{}, error) {
id := cid.New()
var id cid.ID
err := id.Parse(key.(string))
err := id.DecodeString(key.(string))
if err != nil {
return nil, err
}
return v.Get(id)
return v.Get(&id)
})
return (*ttlContainerStorage)(lruCnrCache)
@ -167,14 +167,14 @@ func newCachedEACLStorage(v eacl.Source) *ttlEACLStorage {
)
lruCnrCache := newNetworkTTLCache(eaclCacheSize, eaclCacheTTL, func(key interface{}) (interface{}, error) {
id := cid.New()
var id cid.ID
err := id.Parse(key.(string))
err := id.DecodeString(key.(string))
if err != nil {
return nil, err
}
return v.GetEACL(id)
return v.GetEACL(&id)
})
return (*ttlEACLStorage)(lruCnrCache)