···936936// WalkLeavesFrom walks the leaves of the tree, calling the cb callback on each
937937// key that's greater than or equal to the provided from key.
938938// If cb returns an error, the walk is aborted and the error is returned.
939939+// NB: this method caches the tree structure in memory to make subsequent tree
940940+// operations significantly faster
939941func (mst *MerkleSearchTree) WalkLeavesFrom(ctx context.Context, from string, cb func(key string, val cid.Cid) error) error {
940942 return mst.walkLeavesFrom(ctx, from, false, cb)
941943}
942944945945+// WalkLeavesFromNocache works the same as WalkLeavesFrom but does not cache
946946+// internal tree structure, intended for "once through" passes of MSTs,
947947+// especially in streaming contexts
943948func (mst *MerkleSearchTree) WalkLeavesFromNocache(ctx context.Context, from string, cb func(key string, val cid.Cid) error) error {
944949 return mst.walkLeavesFrom(ctx, from, true, cb)
945950}