diff --git a/lib/plugin.js b/lib/plugin.js index 84a082b..64fff75 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -279,6 +279,8 @@ exports.init = function initDB(peer, config) { return null } + // TODO: improve performance of this when getting many messages, the argument + // could be an array of hashes, so we can do a single pass over the records. function getRecord(msgId) { const isUri = msgId.startsWith('ppppp:') for (let i = 0; i < recs.length; i++) { @@ -352,7 +354,7 @@ exports.init = function initDB(peer, config) { // internal findEncryptionFormatFor, - // mockable by tests + // used by tests _getLog: () => log, } }