-
Notifications
You must be signed in to change notification settings - Fork 39
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
Harden ripple api connectivity #906
base: master
Are you sure you want to change the base?
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.
One question.
@@ -87,22 +92,28 @@ export class RippleTools implements EdgeCurrencyTools { | |||
|
|||
async connectApi(walletId: string): Promise<void> { | |||
if (Object.keys(this.rippleApiSubscribers).length === 0) { | |||
this.rippleApiSubscribers[walletId] = true |
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 feel like this should be a Set
instead of an object, but maybe that's out of scope for this PR.
src/ripple/RippleTools.ts
Outdated
await api.connect() | ||
return api | ||
}) | ||
const result: Client = await asyncWaterfall(funcs) |
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.
Do we want to reset the promise / resolver here too?
8a351e8
to
5233ae9
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none