Skip to content

Commit

Permalink
fix: Fix bug in fetch-all (#42)
Browse files Browse the repository at this point in the history
Fetch-all doesn't store the last cursor data, so the results are always
limited to thousands, data fetching is incomplete.
  • Loading branch information
inzanez committed Nov 15, 2020
1 parent 148af62 commit cad3923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ impl<'a, C: ClientExt> Database<C> {
.join(&format!("_api/cursor/{}", cursor_id))
.unwrap();
let resp = self.session.put(url, "").await?;

deserialize_response(resp.body())
}

Expand All @@ -235,6 +234,7 @@ impl<'a, C: ClientExt> Database<C> {
results.extend(response_cursor.result.into_iter());
response_cursor = self.aql_next_batch(id.as_str()).await?;
} else {
results.extend(response_cursor.result.into_iter());
break;
}
}
Expand Down

0 comments on commit cad3923

Please sign in to comment.