Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-bgh committed Sep 8, 2023
1 parent 25d5bf7 commit deff1fa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/transaction-pool/src/pool/parked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ impl<T: ParkedOrd> ParkedPool<T> {
Some(tx.transaction.into())
}

/// Removes the worst transaction from this pool.
pub(crate) fn _pop_worst(&mut self) -> Option<Arc<ValidPoolTransaction<T::Transaction>>> {
let worst = self.best.iter().next().map(|tx| *tx.transaction.id())?;
self.remove_transaction(&worst)
}

/// Get txs by sender
pub(crate) fn get_txs_by_sender(
&self,
Expand Down

0 comments on commit deff1fa

Please sign in to comment.