-
Notifications
You must be signed in to change notification settings - Fork 563
[Refactor] Simplify RPC client map key usage in getRpcClient function #3805
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 5c9af85 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org requires the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
7213ddf
to
2c788d4
Compare
CodSpeed Performance ReportMerging #3805 will not alter performanceComparing Summary
|
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3805 +/- ##
==========================================
+ Coverage 62.14% 62.31% +0.16%
==========================================
Files 964 963 -1
Lines 75083 74808 -275
Branches 3770 3768 -2
==========================================
- Hits 46660 46615 -45
+ Misses 27738 27510 -228
+ Partials 685 683 -2
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
…#3805) ### TL;DR Fixes an issue with RPC client reuse to improve performance. ### What changed? The change replaces the use of `chainId` with `rpcUrl` as the key in the `rpcClientMap` to ensure the correct RPC client is reused. ### How to test? Test by running existing unit tests and functional tests for RPC client related functionality. Ensure that performance metrics show improvement in RPC client reuse scenarios. ### Why make this change? This change is motivated by the need to improve performance by ensuring the RPC client is correctly reused. ---
2c788d4
to
5c9af85
Compare
TL;DR
Fixes an issue with RPC client reuse to improve performance.
What changed?
The change replaces the use of
chainId
withrpcUrl
as the key in therpcClientMap
to ensure the correct RPC client is reused.How to test?
Test by running existing unit tests and functional tests for RPC client related functionality. Ensure that performance metrics show improvement in RPC client reuse scenarios.
Why make this change?
This change is motivated by the need to improve performance by ensuring the RPC client is correctly reused.
PR-Codex overview
The focus of this PR is to improve performance by fixing the reuse of RPC clients in the
rpc.ts
file.Detailed summary
chainId
torpcUrl
for clarityrpcUrl
instead ofoptions.chain.rpc