Skip to content

Commit 7ab5e0f

Browse files
Don't impl HttpClient for reqwest::blocking::Client on wasm32 (#2073)
Co-authored-by: Lalit Kumar Bhasin <[email protected]>
1 parent ff9d50b commit 7ab5e0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opentelemetry-http/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ mod reqwest {
8383
}
8484
}
8585

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

0 commit comments

Comments
 (0)