Skip to content

Commit

Permalink
Don't impl HttpClient for reqwest::blocking::Client on wasm32 (#2073)
Browse files Browse the repository at this point in the history
Co-authored-by: Lalit Kumar Bhasin <[email protected]>
  • Loading branch information
OliverEvans96 and lalitb authored Sep 13, 2024
1 parent ff9d50b commit 7ab5e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opentelemetry-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ mod reqwest {
}
}

#[cfg(not(target_arch = "wasm32"))]
#[async_trait]
impl HttpClient for reqwest::blocking::Client {
async fn send(&self, request: Request<Vec<u8>>) -> Result<Response<Bytes>, HttpError> {
Expand Down

0 comments on commit 7ab5e0f

Please sign in to comment.