Skip to content

Commit

Permalink
async send rpc client
Browse files Browse the repository at this point in the history
  • Loading branch information
BoogVAr committed Oct 30, 2024
1 parent 2be1d15 commit 8a467ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion evm_loader/rpc-client/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Default for NeonRpcHttpClientBuilder {
}
}

#[async_trait(?Send)]
#[async_trait]
impl NeonRpcClient for NeonRpcHttpClient {
async fn emulate(&self, params: EmulateApiRequest) -> NeonRpcClientResult<EmulateResponse> {
self.request(LibMethod::Emulate, params).await
Expand Down
4 changes: 2 additions & 2 deletions evm_loader/rpc-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ use neon_lib::{

type NeonRpcClientResult<T> = Result<T, NeonRpcClientError>;

#[async_trait(?Send)]
pub trait NeonRpcClient {
#[async_trait]
pub trait NeonRpcClient: Sync + Send + 'static {
async fn emulate(&self, params: EmulateApiRequest) -> NeonRpcClientResult<EmulateResponse>;
async fn balance(
&self,
Expand Down

0 comments on commit 8a467ef

Please sign in to comment.