-
Notifications
You must be signed in to change notification settings - Fork 19
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
P-906 fix: update limit param to 100 for the geniidata API for BRC20 VC #2849
Conversation
@@ -68,8 +68,8 @@ impl RestPath<String> for GeniidataResponse { | |||
} | |||
} | |||
|
|||
// According to https://geniidata.readme.io/reference/get-brc20-tick-list-copy, the maximum limit is i32::MAX | |||
const GENIIDATA_QUERY_LIMIT: &str = "2147483647"; | |||
// According to https://geniidata.readme.io/reference/get-brc20-tick-list-copy, the maximum limit is 100 |
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.
Hmm I don't see the limit is 100 tho, the doc only says i32
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.
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.
So as per my understanding it's our limit in order to do paged query
… change it to pagination query
…ck server to return empty response while offset param is not 0
0bc9e74
to
0f9f8b2
Compare
…et param is not 0 or empty
and change it to pagination query
Context
hotfix geniidata api breaking changes
Labels
Please apply following PR-related labels when appropriate:
C0-breaking
: if your change could break the existing client, e.g. API change, critical logic changeC1-noteworthy
: if your change is non-breaking, but is still worth noticing for the client, e.g. reference code improvementHow (Optional)
Testing Evidences
Please attach any relevant evidences if applicable