-
Notifications
You must be signed in to change notification settings - Fork 148
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
pink: Support for batch HTTP request #1280
Conversation
ac0fdb1
to
1b0602c
Compare
|
||
/// Batch http request | ||
#[ink(extension = 22, handle_status = true)] | ||
fn batch_http_request( |
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.
Should we give out error on the ink side when there are too many requests?
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.
Given
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.
LGTM
This PR adds a new extension function to send multiple HTTP requests simultaneously:
The PR requires runtime upgrading for the already deployed cluster.
Usage:
https://github.com/Phala-Network/phala-blockchain/pull/1280/files#diff-ede8afeb0bf8928e02cd43f590808488c91465e013f2be7cc8adbf9b1715dad2R119-R140