mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 01:38:04 +00:00
Cleanup our sort usage (#6754)
This commit is contained in:
@@ -64,7 +64,7 @@ where
|
||||
return;
|
||||
}
|
||||
|
||||
addresses.sort_unstable_by(|a, b| a.as_ref().cmp(b.as_ref()));
|
||||
addresses.sort_by(|a, b| a.as_ref().cmp(b.as_ref()));
|
||||
self.cache.insert(id, addresses);
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ where
|
||||
.collect::<Vec<Addr>>();
|
||||
|
||||
addresses.dedup();
|
||||
addresses.sort_unstable_by(|a, b| a.as_ref().cmp(b.as_ref()));
|
||||
addresses.sort_by(|a, b| a.as_ref().cmp(b.as_ref()));
|
||||
|
||||
addresses
|
||||
.choose_multiple(&mut rng, MAX_NUM_AUTHORITY_CONN)
|
||||
|
||||
Reference in New Issue
Block a user