-
Notifications
You must be signed in to change notification settings - Fork 0
Implement bulk delete #31
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
Conversation
andrebsguedes
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.
Looks great, some minor comments
src/crud_ops.rs
Outdated
| unsafe impl Send for BulkResponse {} | ||
|
|
||
| impl RawResponse for BulkResponse { | ||
| type Payload = Vec<(Path, String)>; |
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.
As discussed elsewhere we will fix the ergonomics of this later, but one thing we can do now is defer converting the error to string to set_payload. That way a Rust user of bulk_delete still has an Error to work with.
| type Payload = Vec<(Path, String)>; | |
| type Payload = Vec<(Path, crate::Error)>; |
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.
The last bunch of nits (sorry for that!)
Edit: The order of the comments got jumbled, I suggest going in the order they appear in the file
No description provided.