Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ferriskey/src/cluster/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ where
{
// Last key reached; add the path argument index for each route and break
let path_idx = curr_arg_idx + 1;
for (_, arg_indices) in routes.iter_mut() {
for arg_indices in routes.values_mut() {
arg_indices.push(path_idx);
}
break;
Expand Down
7 changes: 2 additions & 5 deletions ferriskey/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ impl<'a, T: FromValue + 'a, C: AsyncConnection + Send + 'a> AsyncIterInner<'a, T
if let Some(v) = self.batch.next() {
return Some(v);
};
if let Some(cursor) = self.cmd.cursor {
if cursor == 0 {
return None;
}
} else {
let cursor = self.cmd.cursor?;
if cursor == 0 {
return None;
}

Expand Down
Loading