limitd-client
Advanced tools
Comparing version 2.7.0 to 2.7.1
{ | ||
"name": "limitd-client", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "limitd client for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -120,19 +120,9 @@ const LimitdClient = require('./client'); | ||
ShardClient.prototype.ping = function(type, prefix, callback) { | ||
async.map(this.clients, (client, callback) => { | ||
client.ping((err) => { | ||
if (err) { | ||
return callback(null, { error: err }); | ||
} | ||
callback(); | ||
}); | ||
}, (err, responses) => { | ||
if (err) { return callback(err); } | ||
callback(null, { | ||
errors: responses.map(r => r.error).filter(e => e) | ||
}); | ||
}); | ||
ShardClient.prototype.ping = function(callback) { | ||
async.applyEach( | ||
this.clients, | ||
(client, callback) => client.ping(callback), | ||
callback); | ||
}; | ||
module.exports = ShardClient; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39466
1030