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