-
Notifications
You must be signed in to change notification settings - Fork 43
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
improved streamOrders #687 #780
Conversation
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.
Thanks! I have one more tiny request, and if you want you can squash this into a single commit using the commit template or I can squash merge this myself when you're done.
lib/cli/commands/subscribeorders.ts
Outdated
@@ -18,8 +18,11 @@ export const handler = (argv: Arguments) => { | |||
ensureConnection(argv, true); | |||
}; | |||
|
|||
let xud: any; |
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.
Minor nit, but this can be XudClient
instead of any
.
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.
sure thing
If you may squash and merge I would be happier, don't want to take risk to break commit history of master :) @sangaman |
Hello again,
this PR fixes #687, I was trying to work on new order types but since there're lots of struggles there I wanted to focus something else, as requested by @offerm I've implemented all the following changes;
In a technical overview; I've implemented those by calling
GetInfo
to ensure connection before subscribing anything and if there's noxud
node running then I'm trying to reconnect in3 seconds
(let me know if you want to adjust time) This seemed to be the easiest way to me to implement such logic. Btw. error messages are not being printed every 3 seconds it's only being printed at first.