We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f49b320 commit 7957131Copy full SHA for 7957131
crates/transaction-pool/src/pool/parked.rs
@@ -189,7 +189,7 @@ impl<T: ParkedOrd> ParkedPool<T> {
189
while !self.last_sender_submission.is_empty() && limit.is_exceeded(self.len(), self.size())
190
{
191
// NOTE: This will not panic due to `!last_sender_transaction.is_empty()`
192
- let sender_id = self.last_sender_submission.last().expect("not empty").sender_id;
+ let sender_id = self.last_sender_submission.last().unwrap().sender_id;
193
let list = self.get_txs_by_sender(sender_id);
194
195
// Drop transactions from this sender until the pool is under limits
0 commit comments