File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -317,10 +317,13 @@ export async function _syncPopularityEvery15Minutes() { // exported for unit tes
317317 return ;
318318 }
319319 // now update all jsons in registry
320- console . log ( "_syncPopularityEvery15Minutes: Writing main registry file: " , REGISTRY_FILE ) ;
321- await S3 . putObject ( EXTENSIONS_BUCKET , REGISTRY_FILE , JSON . stringify ( _trimFullRegistry ( registry ) ) ) ;
320+ const registryToWrite = JSON . stringify ( _trimFullRegistry ( registry ) ) ;
321+ console . log ( "_syncPopularityEvery15Minutes: Writing main registry file: " , REGISTRY_FILE , "size:" ,
322+ `${ Math . round ( registryToWrite . length / 1024 ) } KB` ) ;
323+ await S3 . putObject ( EXTENSIONS_BUCKET , REGISTRY_FILE , registryToWrite ) ;
322324 // we dont increment registry version in this flow as this is just a popularity update
323- console . log ( "_syncPopularityEvery15Minutes: Writing registry popularity file: " , POPULARITY_FILE ) ;
325+ console . log ( "_syncPopularityEvery15Minutes: Writing registry popularity file: " , POPULARITY_FILE , "size:" ,
326+ `${ Math . round ( popularity . length / 1024 ) } KB` ) ;
324327 await S3 . putObject ( EXTENSIONS_BUCKET , POPULARITY_FILE , JSON . stringify ( popularity ) ) ;
325328}
326329
You can’t perform that action at this time.
0 commit comments