-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: implement a temporary proxy layer for get requests #1940
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
43d4d97
to
6215193
Compare
Final benchmark: Git Info:
Configuration:
RPS Stats: Max: 1292.00, Min: 674.00, Avg: 1173.50, StdDev: 49.38 Plot: View Plot |
User description
Temporary until paritytech/jsonrpsee#1512 is merged and released. If the changes in the jsonrpsee repo are not accepted we'll make these changes permanent.
PR Type
Enhancement, Bug fix
Description
Implement temporary proxy layer for GET requests
Update jsonrpsee dependency and add related packages
Modify RPC middleware and server configurations
Adjust error handling in RPC responses
Changes walkthrough 📝
mod.rs
Add ErrorCode to public exports
src/eth/primitives/mod.rs
ErrorCode
to the public exportsmod.rs
Add proxy_get_request module
src/eth/rpc/mod.rs
proxy_get_request
proxy_get_request.rs
Implement temporary proxy for GET requests
src/eth/rpc/proxy_get_request.rs
ProxyGetRequestTemp
andProxyGetRequestTempLayer
rpc_server.rs
Replace ProxyGetRequestLayer with temporary version
src/eth/rpc/rpc_server.rs
ProxyGetRequestLayer
withProxyGetRequestTempLayer
rpc_middleware.rs
Update error handling in RPC responses
src/eth/rpc/rpc_middleware.rs
mod.rs
Refactor import statements in test module
src/eth/storage/permanent/rocks/types/mod.rs
e2e-json-rpc.test.ts
Add tests for GET requests to health endpoint
e2e/test/automine/e2e-json-rpc.test.ts
Cargo.toml
Update jsonrpsee and add related dependencies
Cargo.toml