always write lines with a newline

This commit is contained in:
ansuz 2020-02-05 12:43:39 -05:00
parent 1d56c08700
commit 9395a1ef1a
1 changed files with 2 additions and 1 deletions

View File

@ -975,10 +975,11 @@ var trimChannel = function (env, channelName, hash, _cb) {
if (msgHash === hash) {
// everything from this point on should be retained
retain = true;
return void tempStream.write(msgObj.buff, function () {
return void tempStream.write(s_msg + '\n', function () {
readMore();
});
}
readMore();
};
readMessagesBin(env, channelName, 0, handler, w(function (err) {