File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,15 @@ async function _seedSub(sub: Subplebbit, pinnedCids: string[]) {
5252 log . trace (
5353 `Loaded and seeded ${ ipnsRes . filter ( ( res ) => res . status === "fulfilled" ) . length } CommentUpdate and failed to seed ${
5454 ipnsRes . filter ( ( res ) => res . status === "rejected" ) . length
55- } `
55+ } of sub ( ${ sub . address } ) `
5656 ) ;
5757 }
5858
5959 const newCidsToPin = lodash . difference ( lodash . uniq ( allCidsToPin ) , pinnedCids ) ;
6060 if ( newCidsToPin . length > 0 ) {
6161 await sub . plebbit . _defaultIpfsClient ( ) . _client . pin . addAll ( newCidsToPin ) ;
6262 log . trace ( `Pinned ${ newCidsToPin . length } cids from sub (${ sub . address } )` ) ;
63- }
63+ } else log . trace ( `All ${ lodash . uniq ( allCidsToPin ) . length } cids from sub ( ${ sub . address } ) are pinned` ) ;
6464 }
6565}
6666
@@ -73,7 +73,7 @@ export async function seedSubplebbits(subAddresses: string[], plebbit: Plebbit)
7373 try {
7474 const sub = await plebbit . getSubplebbit ( subAddress ) ;
7575 log . trace ( `Loaded the newest record of sub (${ subAddress } ) for seeding` ) ;
76- _seedSub ( sub , pinnedCids ) ;
76+ await _seedSub ( sub , pinnedCids ) ;
7777 } catch ( e ) {
7878 log . error ( `Failed to load and seed sub (${ subAddress } ):` , String ( e ) ) ;
7979 }
You can’t perform that action at this time.
0 commit comments