Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get after close #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix get after close #17

wants to merge 1 commit into from

Conversation

regular
Copy link
Contributor

@regular regular commented Oct 15, 2021

Status quo: We hook ssb.get(). In the function hook, we first call the original get, if that fails, we try to ooo get, and if that also fails, we try the original get again. If flumedb shuts down between the two calls to the original get, it'll throw an unhandled expetion at us when we do the 2nd call. This PR prevents that.

@austinfrey
Copy link

@regular how difficult would it be to add a unit test for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants