Merge branch 'checkpoints' into two

This commit is contained in:
ansuz 2016-05-30 14:58:33 +02:00
commit da42e00344

View File

@ -106,6 +106,10 @@ const getHistory = function (ctx, channelName, handler, cb) {
} }
//console.log(messageBuf[startPoint]); //console.log(messageBuf[startPoint]);
} }
if (cpCount < 2) {
// no checkpoints.
for (var x = msgBuff2.pop(); x; x = msgBuff2.pop()) { handler(x); }
}
cb(); cb();
}); });
}; };