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

Commit

Permalink
fix: make trait impl wasm compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed Sep 17, 2021
1 parent 3143915 commit 25fe6a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethers-middleware/src/timelag/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ where
}
}

#[async_trait]
#[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
#[cfg_attr(not(target_arch = "wasm32"), async_trait)]
impl<M, const K: u8> Middleware for TimeLag<M, K>
where
M: Middleware,
Expand Down

0 comments on commit 25fe6a8

Please sign in to comment.