mirror of
https://seed.radicle.dev/rad:z2UcCU1LgMshWvXj6hXSDDrwB8q8M.git
synced 2026-10-18 19:30:30 +08:00
fix: Use loop in FindByCommit::next to avoid stack overflow
Use an iterative loop with `return` and `continue` to avoid stack overflow. A stack overflow could have occurred due to the recursion, and potentially many jobs.
This commit is contained in:
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixes
|
||||
|
||||
- Use an iterative loop to avoid stack overflow, through recursion, when using
|
||||
`FindByCommit` iterator.
|
||||
|
||||
## 0.5.0
|
||||
|
||||
### Highlights
|
||||
|
||||
Reference in New Issue
Block a user