chore: fix wasm warnings (#1312)
This commit is contained in:
parent
4d9916570f
commit
266b1f4777
|
@ -190,7 +190,7 @@ where
|
|||
poll_broadcast_fut!(cx, this, fut);
|
||||
}
|
||||
Sleeping(delay) => {
|
||||
futures_util::ready!(delay.as_mut().poll(cx));
|
||||
let _ready = futures_util::ready!(delay.as_mut().poll(cx));
|
||||
// if broadcast timer has elapsed and if we have a TX to
|
||||
// broadcast, broadcast it
|
||||
if this.last.elapsed() > *this.broadcast_interval {
|
||||
|
|
|
@ -172,7 +172,7 @@ impl<'a, P: JsonRpcClient> Future for PendingTransaction<'a, P> {
|
|||
|
||||
match this.state {
|
||||
PendingTxState::InitialDelay(fut) => {
|
||||
futures_util::ready!(fut.as_mut().poll(ctx));
|
||||
let _ready = futures_util::ready!(fut.as_mut().poll(ctx));
|
||||
tracing::debug!("Starting to poll pending tx {:?}", *this.tx_hash);
|
||||
let fut = Box::pin(this.provider.get_transaction(*this.tx_hash));
|
||||
rewake_with_new_state!(ctx, this, PendingTxState::GettingTx(fut));
|
||||
|
|
Loading…
Reference in New Issue