diff --git a/app/lib/dal/fileDAL.ts b/app/lib/dal/fileDAL.ts index a53767ea001f2b5562d7a97638df8f598f2edb43..336ca9258b41f942c2d552b627bd81530832bdee 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) => {