Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jan 15, 2024
1 parent 4158c8a commit e4aeeea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/middleware/axum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ where
type Future = ResponseFuture<S::Future>;

fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
self.inner.poll_ready(cx).map_err(Into::into)
self.inner.poll_ready(cx)
}

fn call(&mut self, req: Request<B>) -> Self::Future {
use tracing_opentelemetry::OpenTelemetrySpanExt;
let req = req;
let span = if self.filter.map_or(true, |f| f(req.uri().path())) {
let span = otel_http::http_server::make_span_from_request(&req);
let route = http_route(&req);
Expand Down
2 changes: 1 addition & 1 deletion src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl TracedResponse {
}

#[cfg(feature = "axum")]
pub async fn into_axum_bytes(self) -> Result<axum::body::Bytes> {
pub async fn into_axum_bytes(self) -> Result<axum::body::Bytes, Error> { {
Ok(self.resp.into_body().collect().await?.to_bytes())
}
}
Expand Down

0 comments on commit e4aeeea

Please sign in to comment.