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

test: add a rpc test confirming that we support batched requests #1638

Merged
merged 10 commits into from
Jan 17, 2025

Conversation

oac1771
Copy link
Contributor

@oac1771 oac1771 commented Jan 16, 2025

What was wrong?

Adds test case described in #1571 which adds a test case ensuring batch calls are supported.

How was it fixed?

used allow http rpcclient to batch call trin node

To-Do

Comment on lines 99 to 108
let client_version_fut = batch
.add_call::<(), serde_json::Value>("web3_clientVersion", &())
.unwrap();
let node_info_fut = batch
.add_call::<(), serde_json::Value>("discv5_nodeInfo", &())
.unwrap();

batch.send().await.unwrap();
client_version_fut.await.unwrap();
node_info_fut.await.unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is fut? I think it is fine if we just write future there, makes it more readable for people

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, just made the change

Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: PR looks good. Thank you for your contribution 🥳

@KolbyML KolbyML changed the title test: Add an rpc test confirming that we support batched requests test: add a rpc test confirming that we support batched requests Jan 17, 2025
@KolbyML KolbyML merged commit 314309c into ethereum:master Jan 17, 2025
10 of 11 checks 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