Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore: more lints
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Nov 8, 2021
1 parent f96f39e commit 82737e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ethers-providers/src/pending_escalator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,23 @@ where
Sleeping(instant) => {
if instant.elapsed() > *this.polling_interval {
// if timer has elapsed (or this is the first tx)
if this.last.is_none()
|| (*this.last).unwrap().elapsed() > *this.broadcast_interval
if this.last.is_none() ||
(*this.last).unwrap().elapsed() > *this.broadcast_interval
{
// then if we have a TX to broadcast, start
// broadcasting it
if let Some(next_to_broadcast) = this.txns.pop() {
let fut = this.provider.send_raw_transaction(next_to_broadcast);
*this.state = BroadcastingNew(fut);
cx.waker().wake_by_ref();
return Poll::Pending;
return Poll::Pending
}
}

check_all_receipts!(cx, this);
}

return Poll::Pending;
return Poll::Pending
}
BroadcastingNew(fut) => {
broadcast_checks!(cx, this, fut);
Expand All @@ -181,7 +181,7 @@ where
Poll::Pending => {
// stick it pack in the list for polling again later
futs.push(pollee);
return Poll::Pending;
return Poll::Pending
}
}
}
Expand Down

0 comments on commit 82737e8

Please sign in to comment.