-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Simplify dag fetcher (#913)
* Remove commented out code from commitFetcher * Remove cid from state Is no need for this complication * Remove unused type * Unfactor func called once Now we can see what it does, allowing for future improvements * Remove unused return param * Remove kvEnd Statefull prop doesn't really do anything * Call nextKey at the start of loop Instead of the end, plus init. I find this much easier to read. * Unfactor single use function Is easier to read IMO, and allows for future refactorings * Remove iteration state Simpler and easier to read * Remove potential spans error Is no reason for us to have to worry about this
- Loading branch information
1 parent
6ccae7f
commit 3b53193
Showing
2 changed files
with
22 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters