-
Notifications
You must be signed in to change notification settings - Fork 135
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
Conversation
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(); |
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.
what is fut? I think it is fine if we just write future
there, makes it more readable for people
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.
Sweet, just made the change
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.
PR looks good. Thank you for your contribution 🥳
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