|
|
@ -747,7 +747,7 @@ module.exports.create = function (cfg, cb) {
|
|
|
|
|
|
|
|
|
|
|
|
// TODO compute lastKnownHash in a manner such that it will always skip past the metadata line?
|
|
|
|
// TODO compute lastKnownHash in a manner such that it will always skip past the metadata line?
|
|
|
|
getHistoryAsync(channelName, lastKnownHash, false, (msg, readMore) => {
|
|
|
|
getHistoryAsync(channelName, lastKnownHash, false, (msg, readMore) => {
|
|
|
|
if (!msg) { return; }
|
|
|
|
if (!msg) { return; } // XXX
|
|
|
|
msgCount++;
|
|
|
|
msgCount++;
|
|
|
|
// avoid sending the metadata message a second time
|
|
|
|
// avoid sending the metadata message a second time
|
|
|
|
if (isMetadataMessage(msg) && metadata_cache[channelName]) { return readMore(); }
|
|
|
|
if (isMetadataMessage(msg) && metadata_cache[channelName]) { return readMore(); }
|
|
|
|