@@ -70,8 +70,8 @@ class DirSharded extends Dir {
7070 this . _bucket . eachLeafSeries ( iterator , callback )
7171 }
7272
73- flush ( path , ipldResolver , source , callback ) {
74- flush ( this . _options , this . _bucket , path , ipldResolver , source , ( err , node ) => {
73+ flush ( path , ipld , source , callback ) {
74+ flush ( this . _options , this . _bucket , path , ipld , source , ( err , node ) => {
7575 if ( err ) {
7676 callback ( err )
7777 } else {
@@ -89,7 +89,7 @@ function createDirSharded (props, _options) {
8989 return new DirSharded ( props , _options )
9090}
9191
92- function flush ( options , bucket , path , ipldResolver , source , callback ) {
92+ function flush ( options , bucket , path , ipld , source , callback ) {
9393 const children = bucket . _children // TODO: intromission
9494 let index = 0
9595 const links = [ ]
@@ -119,7 +119,7 @@ function flush (options, bucket, path, ipldResolver, source, callback) {
119119 function collectChild ( child , index , callback ) {
120120 const labelPrefix = leftPad ( index . toString ( 16 ) . toUpperCase ( ) , 2 , '0' )
121121 if ( Bucket . isBucket ( child ) ) {
122- flush ( options , child , path , ipldResolver , null , ( err , node ) => {
122+ flush ( options , child , path , ipld , null , ( err , node ) => {
123123 if ( err ) {
124124 callback ( err )
125125 return // early
@@ -154,7 +154,7 @@ function flush (options, bucket, path, ipldResolver, source, callback) {
154154 cid = cid . toV1 ( )
155155 }
156156
157- ipldResolver . put ( node , { cid } , ( err ) => callback ( err , node ) )
157+ ipld . put ( node , { cid } , ( err ) => callback ( err , node ) )
158158 } ,
159159 ( node , callback ) => {
160160 const pushable = {
0 commit comments