update comments

This commit is contained in:
Andre Staltz 2023-04-18 16:28:39 +03:00
parent 837a78cbfc
commit 656d622271
1 changed files with 3 additions and 1 deletions

View File

@ -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,
}
}