traversal.NodeBuilderChooser can now return error. Also, the default no...
traversal.NodeBuilderChooser can now return error. Also, the default no longer returns ipldfree.NodeBuilder. The traversal package having a dependency on the ipldfree Node implementation package was problematic: it's important that we be able to benchmark traversal *in combination* with different implementations of Node, and it turns out if we want to build reusable test and benchmark functions for that, we get cyclic dependencies when then trying to use them on our most common implementation! Ouch. Having a default implementation of Node referenced was originally out of a desire for convenience. But it's logically dubious anyway. Even the convenience gain in practice is questionable since one still always needs to configure a LinkLoader in the same areas. At any rate, hopefully the error message is helpful enough to make this low-impact. (We could probably benefit from more helper methods around this, too. But we can review that later. Preferably after the 'NodeStyle' feature from the R&D branches lands, also, which should make this whole area better named, clearer about where its allocations arrive, and just less fidgety in general.)
Showing
Please register or sign in to comment