Skip to content

Bump go version, update hashicorp/lru to v2#5

Merged
fyrchik merged 9 commits intomasterfrom
update-go
Dec 31, 2022
Merged

Bump go version, update hashicorp/lru to v2#5
fyrchik merged 9 commits intomasterfrom
update-go

Conversation

@fyrchik
Copy link

@fyrchik fyrchik commented Dec 30, 2022

No description provided.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
acid-ant
acid-ant previously approved these changes Dec 30, 2022
alexvanin
alexvanin previously approved these changes Dec 30, 2022

return val.(*container.EACL), nil
func (s ttlEACLStorage) GetEACL(cnr cid.ID) (*container.EACL, error) {
return s.get(cnr.EncodeToString())

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how short it gets with generics.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, your commment made me think, that we do not need to encode the container ID here, can use cid.ID too. Fixed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only problem I encountered is that you cannot define a type like type X Type[int, int] and then some methods on top of it.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
@fyrchik fyrchik mentioned this pull request Dec 30, 2022
@fyrchik fyrchik merged commit fdb0aff into master Dec 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants