mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
chore: fix some comments (#4004)
Signed-off-by: divdeploy <chenguangxue@outlook.com>
This commit is contained in:
@@ -319,7 +319,7 @@ fn reduce_all<A: IdentifierT>(assignments: &mut Vec<StakedAssignment<A>>) -> u32
|
||||
let mut tree: BTreeMap<NodeId<A>, NodeRef<A>> = BTreeMap::new();
|
||||
|
||||
// NOTE: This code can heavily use an index cache. Looking up a pair of (voter, target) in the
|
||||
// assignments happens numerous times and and we can save time. For now it is written as such
|
||||
// assignments happens numerous times and we can save time. For now it is written as such
|
||||
// because abstracting some of this code into a function/closure is super hard due to borrow
|
||||
// checks (and most likely needs unsafe code at the end). For now I will keep it as it and
|
||||
// refactor later.
|
||||
|
||||
Reference in New Issue
Block a user