func (e *Editor) Finalize(ctx context.Context, ds dms3ld.DAGService) (*dag.ProtoNode, error) {
	nd := e.GetNode()
	err := copyDag(ctx, nd, e.tmp, ds)
	return nd, err
}
// Finalize writes the new DAG to the given DAGService and returns the modified
// root node.
Finalize writes the new DAG to the given DAGService and returns the modified
root node.
// Finalize writes the new DAG to the given DAGService and returns the modified // root node .
func (e *Editor) Finalize(ctx context.Context, ds dms3ld.DAGService) (*dag.ProtoNode, error) {
	nd := e.GetNode()
	err := copyDag(ctx, nd, e.tmp, ds)
	return nd, err
}
func ( e * Editor ) Finalize ( ctx context . Context , ds dms3ld . DAGService ) ( * dag . ProtoNode , error ) { nd := e . GetNode ( ) err := copyDag ( ctx , nd , e . tmp , ds ) return nd , err }
Finalize writes the new DAG to the given DAGService and returns the modified
root node.
Finalize writes the new DAG to the given DAGService and returns the modified root node .