Skip to content

Commit

Permalink
PR Review: order db retrieved block range root by start & end
Browse files Browse the repository at this point in the history
Instead of rowid, this is more consistent accross nodes.
  • Loading branch information
Alenar committed Apr 26, 2024
1 parent 1789a99 commit 409530d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ impl<'client> Provider<'client> for GetBlockRangeRootProvider<'client> {
let aliases = SourceAlias::new(&[("{:block_range_root:}", "block_range_root")]);
let projection = Self::Entity::get_projection().expand(aliases);

format!("select {projection} from block_range_root where {condition} order by rowid")
format!("select {projection} from block_range_root where {condition} order by start, end")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ impl<'client> Provider<'client> for GetBlockRangeRootProvider<'client> {
let aliases = SourceAlias::new(&[("{:block_range_root:}", "block_range_root")]);
let projection = Self::Entity::get_projection().expand(aliases);

format!("select {projection} from block_range_root where {condition} order by rowid")
format!("select {projection} from block_range_root where {condition} order by start, end")
}
}

0 comments on commit 409530d

Please sign in to comment.