From 656d622271a4adaf4dca75004b6e9438ca4e5b7a Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Tue, 18 Apr 2023 16:28:39 +0300 Subject: [PATCH] update comments --- lib/plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, } }