From 583ce91ff04cde1c02396ff111d856883f81e845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus-Peter=20H=C3=BCbner?= Date: Thu, 16 Feb 2023 14:02:31 +0100 Subject: [PATCH] rework PR-comments --- dht-node/src/dht_node/index.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/dht-node/src/dht_node/index.ts b/dht-node/src/dht_node/index.ts index dd25d8d81..50ed46600 100644 --- a/dht-node/src/dht_node/index.ts +++ b/dht-node/src/dht_node/index.ts @@ -32,15 +32,6 @@ export const startDHT = async (topic: string): Promise => { logger.debug(`keyPairDHT: secretKey=${keyPair.secretKey.toString('hex')}`) const ownApiVersions = writeHomeCommunityEnries(keyPair.publicKey) - /* - const ownApiVersions = Object.values(ApiVersionType).map(function (apiEnum) { - const comApi: CommunityApi = { - api: apiEnum, - url: CONFIG.FEDERATION_COMMUNITY_URL, - } - return comApi - }) - */ logger.debug(`ApiList: ${JSON.stringify(ownApiVersions)}`) const node = new DHT({ keyPair }) @@ -216,6 +207,5 @@ async function writeHomeCommunityEnries(pubKey: any): Promise { } catch (err) { throw new Error(`Federation: Error writing HomeCommunity-Entries: ${err}`) } - return homeApiVersions }