-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: get_deposits
returns accepted and pending
#1479
base: main
Are you sure you want to change the base?
feat: get_deposits
returns accepted and pending
#1479
Conversation
get_deposits
returns accepted and pendingget_deposits
returns accepted and pending
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.
Do we need to halve/change pagination_timeout
default now that potentially do twice the amount of fetching?
fn get_deposits( | ||
&self, | ||
) -> impl std::future::Future<Output = Result<Vec<CreateDepositRequest>, Error>> + Send; | ||
|
||
/// Get pending deposits from Emily. |
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.
nit: outdated comment
// Check that we get all deposits | ||
let deposits = emily_client.get_deposits().await.unwrap(); | ||
assert_eq!(deposits.len(), num_deposits); |
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.
nit: can we also check that we got num_accepted
deposits with an Accepted
state?
Description
Closes: #1463
Changes
get_deposits
->get_deposits_with_status
.get_deposits
implementation that returns bothPending
andAccepted
deposits. If only one of the two calls fails, we log an error but still return the deposits fetched by the other call.Testing Information
Checklist: