mirror of https://codeberg.org/pzp/pzp-db.git
update comments
This commit is contained in:
parent
837a78cbfc
commit
656d622271
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue