Skip to content

Commit

Permalink
Memory leak fix: do not wait process.nextTick (#81)
Browse files Browse the repository at this point in the history
Addresses the memory leak identified here:

winstonjs/winston#1871 (comment)
  • Loading branch information
smashah authored Feb 5, 2022
1 parent 46e5822 commit 6566518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ TransportStream.prototype._write = function _write(info, enc, callback) {

return this.log(transformed, callback);
}

this._writableState.sync = false;
return callback(null);
};

Expand Down

0 comments on commit 6566518

Please sign in to comment.