Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function loadServices (callback) {
winston.info('Loading services from registry');
confService.list(null, 100, 0, function (err, services) {
if (err) {
winston.error('Error', err);
callback();
}
if (services.count > 0 && services.services.length > 0) {
async.eachSeries(
services.services,
registerConfiguration,
function (err) {
if (err) {
winston.error('Error loading services', err);
return callback(err);
} else {
return callback();
}
}