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

re-start restoration workers when restarting the application #486

Merged
merged 4 commits into from
Jun 27, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Jun 26, 2019

Issue Number

#484

Overview

  • I have made sure to restart a worker for each known wallet when restarting the wallet server

Comments

I have not yet find a nice & easy way to test this 🤔 ...

@KtorZ KtorZ requested a review from piotr-iohk June 26, 2019 14:00
@KtorZ KtorZ self-assigned this Jun 26, 2019
@@ -753,7 +753,7 @@ locateErrors residue len
let p1 = (l_s1 - l_s0 + 1023) `mod` 1023 in
if (p1 >= len) then [] else
let l_e1 = l_s0 + (1023 - 997) * p1 in
if (l_e1 `mod` 33 > 0) then [] else [p1]
[p1 | l_e1 `mod` 33 <= 0]
Copy link
Member Author

Choose a reason for hiding this comment

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

a bit unrelated but it seems that hlint had an update in our CI :|

@piotr-iohk
Copy link
Contributor

Perhaps any test would be handy?

@piotr-iohk
Copy link
Contributor

ah, ok - just read the comment in description...

I have not yet find a nice & easy way to test this..

@piotr-iohk
Copy link
Contributor

I have not yet find a nice & easy way to test this

Maybe just looking at the logs after restarting the server? (similarly to logging tests in #474 )

@KtorZ KtorZ force-pushed the KtorZ/fix-restoration-workers branch from deab077 to 808f520 Compare June 27, 2019 12:20
@@ -711,6 +714,22 @@ tearDown ctx = do
Left e -> error $ "deleteAllWallets: Cannot return wallets: " <> show e
Right s -> s

-- | Wait a booting wallet server to has started. Wait up to 30s or fail.
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait a booting wallet server to has started (or to has started)

Copy link
Member Author

Choose a reason for hiding this comment

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

Aaaah. Damn. I clicked merge too fast 🤦‍♂️
I'll fix in another PR.

Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

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

lgtm 👍
(only a small typo in comment)

@KtorZ KtorZ merged commit 802dabb into master Jun 27, 2019
@KtorZ KtorZ deleted the KtorZ/fix-restoration-workers branch June 27, 2019 12:47
@KtorZ KtorZ added this to the Bugs Sprint 25-26 milestone Jul 2, 2019
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