File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -234,16 +234,16 @@ impl super::Mempool {
234
234
let mut dp = None ;
235
235
if let Some ( buffered_proposals) = self . buffered_proposals . get_mut ( & lane_id) {
236
236
// Check if we have a buffered proposal that is a child of this DP
237
- let i = buffered_proposals. iter ( ) . position ( |dp| {
237
+ let child_idx = buffered_proposals. iter ( ) . position ( |dp| {
238
238
if let Some ( parent_hash) = & dp. parent_data_proposal_hash {
239
239
parent_hash == & hash
240
240
} else {
241
241
false
242
242
}
243
243
} ) ;
244
- if let Some ( i ) = i {
244
+ if let Some ( child_idx ) = child_idx {
245
245
// We have a buffered proposal that is a child of this DP
246
- dp = Some ( buffered_proposals. swap_remove ( i ) ) ;
246
+ dp = Some ( buffered_proposals. swap_remove ( child_idx ) ) ;
247
247
}
248
248
}
249
249
if let Some ( dp) = dp {
You can’t perform that action at this time.
0 commit comments