From 76ec1ccd212d1df5fc84dd993d585c0232ffc647 Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Tue, 3 Dec 2019 16:47:05 +0100 Subject: [PATCH] chore: remove commented code --- src/dialer.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/dialer.js b/src/dialer.js index 1766e28d..8074200a 100644 --- a/src/dialer.js +++ b/src/dialer.js @@ -134,30 +134,3 @@ class Dialer { } module.exports = Dialer - -// class ActionLimiter { -// constructor(actions, options = {}) { -// this.actions = actions -// this.limit = options.limit || 4 -// this.controller = options.controller || new AbortController() -// } -// async abort () { -// this.controller.abort() -// } -// async run () { -// const limit = pLimit(this.limit) -// let result -// try { -// result = await pAny(this.actions.map(action => limit(action))) -// } catch (err) { -// console.log(err) -// if (!err.code) err.code = codes.ERR_CONNECTION_FAILED -// log.error(err) -// throw err -// } finally { -// console.log('RES', result) -// this.controller.abort() -// } -// return result -// } -// }