add names for batched reads for debugging

This commit is contained in:
ansuz
2019-09-06 14:58:00 +02:00
parent a7e40040a1
commit 340a290ceb
2 changed files with 7 additions and 7 deletions

View File

@@ -232,7 +232,7 @@ module.exports.create = function (cfg) {
as an added bonus:
if the channel exists but its index does not then it caches the index
*/
const batchIndexReads = BatchRead();
const batchIndexReads = BatchRead("HK_GET_INDEX");
const getIndex = (ctx, channelName, cb) => {
const chan = ctx.channels[channelName];
// if there is a channel in memory and it has an index cached, return it