-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add binary support #172
Add binary support #172
Conversation
25060da
to
4622d98
Compare
4622d98
to
a5436e1
Compare
redis/src/cluster_async/mod.rs
Outdated
@@ -139,16 +139,16 @@ where | |||
}) | |||
} | |||
|
|||
// Special handling for `SCAN` command, using cluster_scan | |||
/// Special handling for `SCAN` command, using cluster_scan. |
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: using `cluster_scan`
@@ -487,7 +487,7 @@ where | |||
async fn send_scan<C>( | |||
scan_state: &ScanState, | |||
core: &C, | |||
match_pattern: Option<String>, | |||
match_pattern: Option<Vec<u8>>, |
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.
BytesMut
is more efficient, any special reason why you choose Vec<u8>
? (BytesMut
is similar to Vec<u8>
but with less copies and allocations)
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 built in function of the library is to_redis_args which return Vec
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.
Might be better to refactor but not at this point
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.
Makes sense not to make a drastic change at this point
a5436e1
to
789f324
Compare
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.