Skip to content

Commit

Permalink
Add missing Send bound
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Apr 15, 2024
1 parent 5159b52 commit 4f2cfde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/contract/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub(crate) trait ContractHandler {
contract_handler_channel: ContractHandlerChannel<ContractHandlerHalve>,
executor_request_sender: ExecutorToEventLoopChannel<ExecutorHalve>,
builder: Self::Builder,
) -> impl Future<Output = Result<Self, DynError>>
) -> impl Future<Output = Result<Self, DynError>> + Send
where
Self: Sized + 'static;

Expand All @@ -72,7 +72,7 @@ pub(crate) trait ContractHandler {
req: ClientRequest<'a>,
client_id: ClientId,
updates: Option<UnboundedSender<Result<HostResponse, ClientError>>>,
) -> impl Future<Output = Result<HostResponse, DynError>> + 'a;
) -> impl Future<Output = Result<HostResponse, DynError>> + Send + 'a;

fn executor(&mut self) -> &mut Self::ContractExecutor;
}
Expand Down

0 comments on commit 4f2cfde

Please sign in to comment.