From c28fc45b31835eae53a5e845739d9b084dd71913 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 16 Feb 2022 17:43:04 +0530 Subject: [PATCH] comemnt out unused code --- .../machineLearning/machineLearningService.ts | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/services/machineLearning/machineLearningService.ts b/src/services/machineLearning/machineLearningService.ts index d694f5111..b9ef9a9a1 100644 --- a/src/services/machineLearning/machineLearningService.ts +++ b/src/services/machineLearning/machineLearningService.ts @@ -242,24 +242,24 @@ class MachineLearningService { return [...uniqueFiles.values()]; } - private async getOutOfSyncFilesNoIdx(syncContext: MLSyncContext) { - const existingFilesMap = await this.getLocalFilesMap(syncContext); - // existingFiles.sort( - // (a, b) => b.metadata.creationTime - a.metadata.creationTime - // ); - console.time('getUniqueOutOfSyncFiles'); - syncContext.outOfSyncFiles = await this.getUniqueOutOfSyncFilesNoIdx( - syncContext, - [...existingFilesMap.values()] - ); - console.timeEnd('getUniqueOutOfSyncFiles'); - console.log( - 'Got unique outOfSyncFiles: ', - syncContext.outOfSyncFiles.length, - 'for batchSize: ', - syncContext.config.batchSize - ); - } + // private async getOutOfSyncFilesNoIdx(syncContext: MLSyncContext) { + // const existingFilesMap = await this.getLocalFilesMap(syncContext); + // // existingFiles.sort( + // // (a, b) => b.metadata.creationTime - a.metadata.creationTime + // // ); + // console.time('getUniqueOutOfSyncFiles'); + // syncContext.outOfSyncFiles = await this.getUniqueOutOfSyncFilesNoIdx( + // syncContext, + // [...existingFilesMap.values()] + // ); + // console.timeEnd('getUniqueOutOfSyncFiles'); + // console.log( + // 'Got unique outOfSyncFiles: ', + // syncContext.outOfSyncFiles.length, + // 'for batchSize: ', + // syncContext.config.batchSize + // ); + // } private async syncFiles(syncContext: MLSyncContext) { try {