Skip to content

Commit

Permalink
fix(mempool): remove clone from transaction queue
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadNassar1 committed Jul 9, 2024
1 parent ea3e69d commit cd90f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/mempool/src/transaction_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::mempool::TransactionReference;
// at a time. When this changes, saving the transactions themselves on the queu might no longer be
// appropriate, because we'll also need to stores transactions without indexing them. For example,
// transactions with future nonces will need to be stored, and potentially indexed on block commits.
#[derive(Clone, Debug, Default)]
#[derive(Debug, Default)]
pub struct TransactionQueue {
// Priority queue of transactions with associated priority.
queue: BTreeSet<QueuedTransaction>,
Expand Down

0 comments on commit cd90f62

Please sign in to comment.