perf: release listner lock early (#17400)

This commit is contained in:
Matthias Seitz
2025-07-14 17:23:10 +02:00
committed by GitHub
parent 44cc67be00
commit 61bbe5ee29

View File

@@ -433,13 +433,15 @@ where
});
}
let mut listener = self.event_listener.write();
{
let mut listener = self.event_listener.write();
for tx in &promoted {
listener.pending(tx.hash(), None);
}
for tx in &discarded {
listener.discarded(tx.hash());
for tx in &promoted {
listener.pending(tx.hash(), None);
}
for tx in &discarded {
listener.discarded(tx.hash());
}
}
// This deletes outdated blob txs from the blob store, based on the account's nonce. This is