feat(txpool): discard_worst compat with suffix comma (#6477)

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng
2024-02-08 20:25:32 +08:00
committed by GitHub
parent 85d4f18582
commit 838e6179ff

View File

@ -759,7 +759,7 @@ impl<T: TransactionOrdering> TxPool<T> {
// Helper macro that discards the worst transactions for the pools
macro_rules! discard_worst {
($this:ident, $removed:ident, [$($limit:ident => $pool:ident),*] ) => {
($this:ident, $removed:ident, [$($limit:ident => $pool:ident),* $(,)*]) => {
$ (
while $this
.config
@ -806,10 +806,10 @@ impl<T: TransactionOrdering> TxPool<T> {
discard_worst!(
self, removed, [
pending_limit => pending_pool,
basefee_limit => basefee_pool,
blob_limit => blob_pool,
queued_limit => queued_pool
pending_limit => pending_pool,
basefee_limit => basefee_pool,
blob_limit => blob_pool,
queued_limit => queued_pool,
]
);