fix profiler

I updated puffin to egui v0.29.1 and now it works

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-12-07 19:53:32 -08:00
parent 323d1bcd2c
commit 720230ca55
5 changed files with 58 additions and 67 deletions

View File

@@ -275,8 +275,10 @@ pub fn get_unknown_note_ids<'a>(
note: &Note<'a>,
ids: &mut HashSet<UnknownId>,
) -> Result<()> {
// the author pubkey
#[cfg(feature = "profiling")]
puffin::profile_function!();
// the author pubkey
if ndb.get_profile_by_pubkey(txn, note.pubkey()).is_err() {
ids.insert(UnknownId::Pubkey(Pubkey::new(*note.pubkey())));
}