Skip to content
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

Set max batch size #183

Merged
merged 5 commits into from
May 27, 2024
Merged

Set max batch size #183

merged 5 commits into from
May 27, 2024

Conversation

shunsukew
Copy link
Contributor

@shunsukew shunsukew commented May 20, 2024

Setting max batch size limit on RPC calls. Enabling jsonrpsee's functionality.
You will get jsonrpsee response {"jsonrpc":"2.0","error":{"code":-32010,"message":"The batch request was too large","data":"Exceeded max limit of 3"},"id":null} when requested batch exceeds the max batch size.

Screenshot 2024-05-20 at 16 52 49

@xlc
Copy link
Member

xlc commented May 20, 2024

need some tests

@shunsukew shunsukew requested a review from xlc May 26, 2024 07:47
src/server.rs Outdated Show resolved Hide resolved
src/server.rs Outdated Show resolved Hide resolved
src/server.rs Show resolved Hide resolved
src/server.rs Outdated Show resolved Hide resolved
@xlc xlc merged commit 7d63591 into AcalaNetwork:master May 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants