Skip to content

Conversation

r4vn
Copy link

@r4vn r4vn commented Apr 2, 2024

Summary

When using the memoized version of keychain, it introduces two layers of caching.

One is an in-memory private property, and the other is a permanent storage. The latter is being cleared when using .clear(), but the in-memory one stays effective, making it impossible to remove old values during its lifetime.

This PR resets the private property when calling .clear() and adds unit tests for the memoized keychain.

@r4vn r4vn added bug Something isn't working keychain labels Apr 2, 2024
@r4vn r4vn requested a review from sparten11740 April 2, 2024 17:28
@r4vn r4vn self-assigned this Apr 2, 2024
mvayngrib
mvayngrib previously approved these changes Apr 2, 2024
Copy link
Collaborator

@mvayngrib mvayngrib left a comment

Choose a reason for hiding this comment

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

utACK

tests will need refactoring after #80 , but that's ok

@r4vn
Copy link
Author

r4vn commented Apr 2, 2024

tests will need refactoring after #80 , but that's ok

i can take a look at this, once that PR is ready to review

Copy link
Contributor

@kewde kewde left a comment

Choose a reason for hiding this comment

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

utACK - shouldn't this API be rewritten for multiseed btw? @mvayngrib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature keychain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants