Skip to content

Commit

Permalink
evil: #1894
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Sep 21, 2023
1 parent f4ac154 commit cc92183
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared/src/sdk/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use crate::tendermint::block::Height;
/// type-safe methods from a root [`crate::ledger::queries::Router`], generated
/// via `router!` macro.
#[cfg(any(test, feature = "async-client"))]
#[async_trait::async_trait(?Send)]
#[cfg_attr(feature = "async-send", async_trait::async_trait)]
#[cfg_attr(not(feature = "async-send"), async_trait::async_trait(?Send))]
pub trait Client {
/// `std::io::Error` can happen in decoding with
/// `BorshDeserialize::try_from_slice`
Expand Down Expand Up @@ -228,7 +229,8 @@ pub trait Client {
R: tendermint_rpc::SimpleRequest;
}

#[async_trait::async_trait(?Send)]
#[cfg_attr(feature = "async-send", async_trait::async_trait)]
#[cfg_attr(not(feature = "async-send"), async_trait::async_trait(?Send))]
impl<C: tendermint_rpc::Client + std::marker::Sync> Client for C {
type Error = Error;

Expand Down

0 comments on commit cc92183

Please sign in to comment.