Skip to content

Commit

Permalink
feat: remove clone bound from GasEscalatorMiddleware (#13)
Browse files Browse the repository at this point in the history
This trait bound isn't actually needed and conflicts with our providers,
since most of them aren't `Clone`
  • Loading branch information
daniel-savu authored May 27, 2024
1 parent 94fc0ec commit 950dd34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethers-middleware/src/gas_escalator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ where
pub fn new(inner: M, escalator: E, frequency: Frequency) -> Self
where
E: Clone + 'static,
M: Clone + 'static,
M: 'static,
{
use tracing_futures::Instrument;

Expand Down Expand Up @@ -202,7 +202,7 @@ where
{
Ok(new_tx_hash) => {
let new_tx_hash = *new_tx_hash;
tracing::trace!(
tracing::debug!(
old_tx_hash = ?tx_hash,
new_tx_hash = ?new_tx_hash,
old_gas_price = ?old_gas_price,
Expand Down

0 comments on commit 950dd34

Please sign in to comment.