diff --git a/src/content-routing/index.js b/src/content-routing/index.js index d86d35a8..6b95aaba 100644 --- a/src/content-routing/index.js +++ b/src/content-routing/index.js @@ -71,7 +71,7 @@ module.exports = (dht) => { * @param {number} options.maxNumProviders - maximum number of providers to find * @returns {Promise} */ - async findProviders (key, options = {}) { // eslint-disable-line require-await + async findProviders (key, options = {}) { const providerTimeout = options.timeout || c.minute const n = options.maxNumProviders || c.K diff --git a/src/index.js b/src/index.js index a26ffb85..97bb2469 100644 --- a/src/index.js +++ b/src/index.js @@ -303,7 +303,7 @@ class KadDHT extends EventEmitter { * the message. * * @param {Message} msg - * @returns {Promose>} + * @returns {Promise>} * @private */ async _nearestPeersToQuery (msg) { @@ -459,7 +459,7 @@ class KadDHT extends EventEmitter { * * @param {PeerId} peer * @param {Buffer} key - * @returns {Promise<{Record, Array} // TODO: define obj + * @returns {Promise<{Record, Array} * @private */ diff --git a/test/kad-dht.spec.js b/test/kad-dht.spec.js index 95c1dc41..fc887bc0 100644 --- a/test/kad-dht.spec.js +++ b/test/kad-dht.spec.js @@ -411,7 +411,6 @@ describe('KadDHT', () => { const tdht = new TestDHT() const dhts = await tdht.spawn(4) - // const addrs = dhts.map((d) => d.peerInfo.multiaddrs.toArray()[0]) const ids = dhts.map((d) => d.peerInfo.id) const idsB58 = ids.map(id => id.toB58String()) sinon.spy(dhts[3].network, 'sendMessage') diff --git a/test/providers.spec.js b/test/providers.spec.js index 5078da2b..3e09b4f7 100644 --- a/test/providers.spec.js +++ b/test/providers.spec.js @@ -108,8 +108,6 @@ describe('Providers', () => { // slooow so only run when you need to it.skip('many', async function () { - this.timeout(100 * 1000) - const p = path.join( os.tmpdir(), (Math.random() * 100).toString() )