Skip to content

Commit

Permalink
Trivial: Do not reuse class member name for local
Browse files Browse the repository at this point in the history
Since the class has a member of the same name, use a different name
to ensure that removing it will show where it is used.
  • Loading branch information
Geod24 committed Nov 5, 2021
1 parent 35fceb1 commit 758a267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/agora/node/TransactionRelayer.d
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ public class TransactionRelayerFeeImp : TransactionRelayer
immutable params = new immutable(ConsensusParams)();
auto fee_man = new FeeManager(stateDB, params);
auto noclients = new DList!NodeConnInfo();
GetFeeRateDg getTxFeeRate = (in Transaction tx, out Amount rate)
GetFeeRateDg wrapper = (in Transaction tx, out Amount rate)
{
return fee_man.getTxFeeRate(tx, &utxo_set.peekUTXO, rate);
};

this(new TransactionPool(cacheDB), config, noclients, null, new MockClock(0), getTxFeeRate, false);
this(new TransactionPool(cacheDB), config, noclients, null, new MockClock(0), wrapper, false);
}

/***************************************************************************
Expand Down

0 comments on commit 758a267

Please sign in to comment.