From df403420c4c54bb45af74968bef9c9df687df216 Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Wed, 10 May 2023 19:23:27 +0200 Subject: [PATCH] [fix] Remove debug logger in getAvailableSourcesByPubkey() --- app/lib/dal/fileDAL.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/app/lib/dal/fileDAL.ts b/app/lib/dal/fileDAL.ts index a53767ea0..336ca9258 100644 --- a/app/lib/dal/fileDAL.ts +++ b/app/lib/dal/fileDAL.ts @@ -470,26 +470,9 @@ export class FileDAL implements ServerDAO { } async getAvailableSourcesByPubkey(pubkey: string): Promise<HttpSource[]> { - const start = Date.now(); - logger.debug(`Reading sources of pubkey ${pubkey}...`); - const [txAvailable, sources] = await Promise.all([ - this.sindexDAL.getAvailableForPubkey(pubkey) - .then(res => { - logger.debug( - "Reading sources of pubkey %s in %s ms", - pubkey, - Date.now() - start); - return res; - }), + this.sindexDAL.getAvailableForPubkey(pubkey), this.dividendDAL.getUDSources(pubkey) - .then(res => { - logger.debug( - "Reading UDs of pubkey %s in %s ms", - pubkey, - Date.now() - start); - return res; - }) ]); return sources .map((d) => { -- GitLab