Skip to content

Fix get after close - #17

Open
regular wants to merge 1 commit into
masterfrom
fix-get-after-close
Open

Fix get after close#17
regular wants to merge 1 commit into
masterfrom
fix-get-after-close

Conversation

@regular

@regular regular commented Oct 15, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@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