fix subchain request ordering
This commit is contained in:
parent
653363c572
commit
08587a1f56
@ -74,13 +74,15 @@ struct SubchainRequest {
|
|||||||
// front of the round are dispatched first.
|
// front of the round are dispatched first.
|
||||||
impl PartialOrd for SubchainRequest {
|
impl PartialOrd for SubchainRequest {
|
||||||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
||||||
self.subchain_parent.0.partial_cmp(&other.subchain_parent.0)
|
self.subchain_parent.0
|
||||||
|
.partial_cmp(&other.subchain_parent.0)
|
||||||
|
.map(Ordering::reverse)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Ord for SubchainRequest {
|
impl Ord for SubchainRequest {
|
||||||
fn cmp(&self, other: &Self) -> Ordering {
|
fn cmp(&self, other: &Self) -> Ordering {
|
||||||
self.subchain_parent.0.cmp(&other.subchain_parent.0)
|
self.subchain_parent.0.cmp(&other.subchain_parent.0).reverse()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user