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

Bugfix/wallet loading #164

Merged
merged 4 commits into from
Feb 5, 2020
Merged

Bugfix/wallet loading #164

merged 4 commits into from
Feb 5, 2020

Conversation

anbsky
Copy link
Collaborator

@anbsky anbsky commented Feb 5, 2020

This is to improve handling and alerting on various race conditions when wallet file is present on the filesystem but not loaded in memory. Depending on the SDK response, we attempt re-loading the wallet and re-issuing the request.

What was not handled before is a race condition when wallet loading has already been performed by another parallel request to the API (as UI fires them very fast). In this case, SDK fails with an error saying Wallet at path .+ is already loaded, now we handle this error and transparently re-issue the request again instead of passing error back to the UI causing its failure.

@anbsky anbsky requested a review from lyoshenka February 5, 2020 09:02
@lbry-bot lbry-bot assigned lyoshenka and unassigned anbsky Feb 5, 2020
app/proxy/client.go Show resolved Hide resolved
@lbry-bot lbry-bot assigned anbsky and unassigned lyoshenka and anbsky Feb 5, 2020
@anbsky anbsky merged commit 0ce0b21 into master Feb 5, 2020
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.

None yet

2 participants