-
Notifications
You must be signed in to change notification settings - Fork 11.7k
light-clients: fix api pagination and error codes #24206
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
base: steka-aes-event-indexing-fix
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bb958b8 to
4da355c
Compare
4da355c to
69c5e86
Compare
| req.stream_id = Some(stream_id.to_string()); | ||
| req.start_checkpoint = Some(start_checkpoint); | ||
| req.page_size = page_size; | ||
| req.page_token = page_token.clone(); |
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.
no need to fix in this PR but this is screaming out for a builder pattern
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.
This is prost (protobuf) generated object. We use #[non_exhaustive] which means that we don't provide constructors in rust for these objects, because adding new fields would break callers. There isn't a directive that generates builders, and my aim is to be consistent with sui-rust-sdk.
|
|
||
| assert!( | ||
| !response.events.is_empty(), | ||
| "should have at least one event" |
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.
shouldn't this be exactly 1?
mystenmark
left a comment
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.
approved with small comments
9a15fa9 to
82f372c
Compare
Description
When implementing light-client, I discovered small server-side issues to address:
Test plan
E2e tests
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.