Closes #238 Updated async library in order to use lib in —use-strict mode

This commit is contained in:
Dmitry M. Lazutkin
2014-08-28 12:04:02 +04:00
parent fb072dd70d
commit 7558a3c367
6 changed files with 9 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ function configure(config, options) {
}
function shutdown(cb) {
async.forEach(openFiles, function(file, done) {
async.each(openFiles, function(file, done) {
if (!file.write(eol, "utf-8")) {
file.once('drain', function() {
file.end(done);

View File

@@ -80,7 +80,7 @@ function configure(config, options) {
}
function shutdown(cb) {
async.forEach(openFiles, function(file, done) {
async.each(openFiles, function(file, done) {
if (!file.write(eol, "utf-8")) {
file.once('drain', function() {
file.end(done);

View File

@@ -388,7 +388,7 @@ function shutdown(cb) {
}, []);
// Call each of the shutdown functions.
async.forEach(
async.each(
shutdownFunctions,
function(shutdownFn, done) {
shutdownFn(done);

View File

@@ -71,7 +71,7 @@ RollingFileStream.prototype.roll = function(filename, callback) {
//roll the backups (rename file.n to file.n+1, where n <= numBackups)
debug("Renaming the old files");
fs.readdir(path.dirname(filename), function (err, files) {
async.forEachSeries(
async.eachSeries(
files.filter(justTheseFiles).sort(byIndex).reverse(),
increaseFileIndex,
cb