mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-01 15:21:04 +00:00
chore: remove commented code
This commit is contained in:
parent
e445a17278
commit
76ec1ccd21
@ -134,30 +134,3 @@ class Dialer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = 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
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user