-
Notifications
You must be signed in to change notification settings - Fork 925
refactor(experimental): graphql: program accounts makeover #2097
refactor(experimental): graphql: program accounts makeover #2097
Conversation
await Promise.all( | ||
Object.values(programAccountsFetchesByArgsHash).map(({ args, fetches: programAddressCallbacks }) => { | ||
return Object.entries(programAddressCallbacks).map(([programAddress, { callbacks }]) => { |
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.
Yeah, doubly sorry for leading you astray earlier. These, in the finally
block, can all just be .forEach
with no returns or awaits. You just need to kick the requests off synchronously and hand them the resolve/reject methods.
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.
Accepting in principle, since the changes necessary in the prior PRs will just be replicated here!
a7a244e
to
6e871e4
Compare
516a405
to
2ec3e9a
Compare
6e871e4
to
5633432
Compare
2ec3e9a
to
9df3f8b
Compare
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.
Same comments about some test coverage that might be missing (maxMultipleAccountsBatchSize
and jsonParsed
skipping)
024daa2
to
6dc0483
Compare
9df3f8b
to
b916bc0
Compare
Merge activity
|
6dc0483
to
12fe4ff
Compare
b916bc0
to
143d314
Compare
🎉 This PR is included in version 1.90.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |
Continue in the spirit of the previous commit, this time adding a request
coalescer to the
programAccounts
query, allowing for similar optimizations toaccount
, despite there being no batch RPC method forgetProgramAccounts
.