-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will let us handle functionality like ignored files (#1232) without needing to alter the adder API or chunk/trickle files that we know we're going to ignore ahead of time. I considered sticking with nOut *dag.Node instead of ignore bool to give folks more flexibility (e.g. "use nOut instead of chunking/trickling that path yourself"), but I can't think of an easy way to distinguish "please ignore this path" from "please handle this path using your usual chunking/trickling" if we're returning just nOut and err. So this callback just returns a Boolean distinguishing "please ignore" from "please chunk/trickle as usual", and we can add an additional nOut return if we find a use case for a callback-supplied substitute node.
- Loading branch information
Showing
1 changed file
with
25 additions
and
6 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