chore: fix wasm warnings (#1312)

This commit is contained in:
Meet Mangukiya 2022-05-27 19:40:51 +05:30 committed by GitHub
parent 4d9916570f
commit 266b1f4777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ where
poll_broadcast_fut!(cx, this, fut); poll_broadcast_fut!(cx, this, fut);
} }
Sleeping(delay) => { 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 // if broadcast timer has elapsed and if we have a TX to
// broadcast, broadcast it // broadcast, broadcast it
if this.last.elapsed() > *this.broadcast_interval { if this.last.elapsed() > *this.broadcast_interval {

View File

@ -172,7 +172,7 @@ impl<'a, P: JsonRpcClient> Future for PendingTransaction<'a, P> {
match this.state { match this.state {
PendingTxState::InitialDelay(fut) => { 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); tracing::debug!("Starting to poll pending tx {:?}", *this.tx_hash);
let fut = Box::pin(this.provider.get_transaction(*this.tx_hash)); let fut = Box::pin(this.provider.get_transaction(*this.tx_hash));
rewake_with_new_state!(ctx, this, PendingTxState::GettingTx(fut)); rewake_with_new_state!(ctx, this, PendingTxState::GettingTx(fut));