fix: break instead of return (#13402)

This commit is contained in:
Matthias Seitz
2024-12-14 18:20:55 +01:00
committed by GitHub
parent 9e2ebf1a6a
commit ef24efece9

View File

@@ -754,9 +754,9 @@ impl<N: NetworkPrimitives> TransactionFetcher<N> {
}
if let Some(ref mut bud) = budget_fill_request {
*bud = bud.saturating_sub(1);
*bud -= 1;
if *bud == 0 {
return
break
}
}
}