clarify some comments and clean up debug messages

This commit is contained in:
bunnie 2022-10-27 02:53:38 +08:00
parent 6992b31104
commit bef734553e
2 changed files with 5 additions and 2 deletions

View file

@ -688,6 +688,7 @@ impl<'a> ActionManager<'a> {
match self.pddb.borrow().read_dict(VAULT_PASSWORD_DICT, None, Some(256 * 1024)) {
Ok(keys) => {
let mut oom_keys = 0;
il.reserve(keys.len());
for key in keys {
if let Some(data) = key.data {
if let Some(pw) = storage::PasswordRecord::try_from(data).ok() {
@ -727,7 +728,9 @@ impl<'a> ActionManager<'a> {
}
},
}
/*
/* DELETEME: kept around for quick debugging without having to look through commit history
once we have confidence in the new method, we can drop this code right away.
#[cfg(feature="vaultperf")]
self.perfentry(&self.pm, PERFMETA_STARTBLOCK, 1, std::line!());
let keylist = match self.pddb.borrow().list_keys(VAULT_PASSWORD_DICT, None) {

View file

@ -1578,7 +1578,7 @@ fn wrapped_main() -> ! {
(_, buf) = sbuf.split_at_mut(len + pos);
}
SerializeResult::Failure(key_name) => {
log::info!("ran out of space filling buffer, pushing {} back into the queue", key_name);
log::debug!("ran out of space filling buffer, pushing {} back into the queue", key_name);
// data didn't fit, quit with finished = false;
state.key_list.push(key_name);
break;