Unverified Commit e2ba1ee9 authored by Lldenaurois's avatar Lldenaurois Committed by GitHub
Browse files

Remove sort_unstable_by (#4314)

parent a26dd2a4
Pipeline #166568 passed with stages
in 40 minutes and 55 seconds
......@@ -957,7 +957,7 @@ fn limit_disputes<T: Config>(
// Sort the dispute statements according to the following prioritization:
// 1. Prioritize local disputes over remote disputes.
// 2. Prioritize older disputes over newer disputes.
disputes.sort_unstable_by(|a, b| {
disputes.sort_by(|a, b| {
let a_local_block = T::DisputesHandler::included_state(a.session, a.candidate_hash);
let b_local_block = T::DisputesHandler::included_state(b.session, b.candidate_hash);
match (a_local_block, b_local_block) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment