-
Notifications
You must be signed in to change notification settings - Fork 53
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
[WIP] improve(SpokePoolClient): Support restart of failed listener #1721
base: master
Are you sure you want to change the base?
Conversation
In the event that a child process terminates improperly, support restarting it with its initial lookback.
}); | ||
|
||
// Flush all ingested deposits to protect against re-org. | ||
// xxx this probably belongs upstream in a `protected SpokePoolClient.init()` method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed with putting this into init()
to avoid any missed line items
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
// xxx this probably belongs upstream in a `protected SpokePoolClient.init()` method | ||
// that is called in the constructor, such that it can be re-called by this method to | ||
// re-initialise the same defaults. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will upstream this to the SDK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving for you to merge quickly if needed
👍 There's no burning need for it right now, but it's going to be important as we add more chains with more questionable websocket reliability. I'll upstream the init method first and then will circle back to this one. |
* @returns void | ||
*/ | ||
protected childExit(code?: number, signal?: string): void { | ||
if (code === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any system defined constants (like EXIT_SUCCESS
in the stdlib for C) that we can use instead of 0
?
In the event that a child process terminates improperly, support restarting it with its initial lookback.