mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
perf: use unwrap and save 198 cycles (#17836)
This commit is contained in:
@@ -189,7 +189,7 @@ impl<T: ParkedOrd> ParkedPool<T> {
|
||||
while !self.last_sender_submission.is_empty() && limit.is_exceeded(self.len(), self.size())
|
||||
{
|
||||
// NOTE: This will not panic due to `!last_sender_transaction.is_empty()`
|
||||
let sender_id = self.last_sender_submission.last().expect("not empty").sender_id;
|
||||
let sender_id = self.last_sender_submission.last().unwrap().sender_id;
|
||||
let list = self.get_txs_by_sender(sender_id);
|
||||
|
||||
// Drop transactions from this sender until the pool is under limits
|
||||
|
||||
Reference in New Issue
Block a user