Skip to content

Commit

Permalink
Remove outlier changes for different PR
Browse files Browse the repository at this point in the history
  • Loading branch information
marioCluml committed Feb 22, 2024
1 parent 2fa8f07 commit 0eb1604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).

- Add `apply_target_id` field to `Node` struct for reverting node status.
- Add `apply_in_progress` field to `Node` struct for reverting node status.
- Add a unit test to `customers` to check the ordering of the edges returned.

### Fixed

Expand Down
3 changes: 1 addition & 2 deletions src/graphql/outlier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,13 +563,12 @@ where
map.iter_backward()?
};

let (mut nodes, has_more) = if let Some(after) = after {
let (nodes, has_more) = if let Some(after) = after {
let to = earliest_outlier_key(&after)?;
iter_to_nodes_with_outlier(iter, &to, cmp::Ordering::is_ge, last, filter, true)
} else {
iter_to_nodes_with_outlier(iter, &[], always_true, last, filter, true)
}?;
nodes.reverse();
Ok((nodes, has_more, false))
} else {
let first = first.unwrap_or(DEFAULT_CONNECTION_SIZE);
Expand Down

0 comments on commit 0eb1604

Please sign in to comment.