chore: fix some comments (#4004)

Signed-off-by: divdeploy <chenguangxue@outlook.com>
This commit is contained in:
divdeploy
2024-04-06 02:35:57 +08:00
committed by GitHub
parent 0832f0f36d
commit a0eed0a6f8
5 changed files with 5 additions and 5 deletions
@@ -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.