Skip to content

Commit b4fa5ef

Browse files
authored
framework: add Send and Sync traits for async request (#223)
Fixes #222.
1 parent cc78fb6 commit b4fa5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudflare/src/framework/async_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Client {
6060
/// Issue an API request of the given type.
6161
pub async fn request<ResultType>(
6262
&self,
63-
endpoint: &(dyn Endpoint<ResultType>),
63+
endpoint: &(dyn Endpoint<ResultType> + Send + Sync),
6464
) -> ApiResponse<ResultType>
6565
where
6666
ResultType: ApiResult,

0 commit comments

Comments
 (0)