Skip to content

Commit

Permalink
🐛 let _ = is dropped immediatly
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <david.bernard.31@gmail.com>
  • Loading branch information
davidB committed Feb 11, 2024
1 parent d122c5e commit ebb74c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ where
tracing::Span::none()
};
let future = {
let _ = span.enter();
let _enter = span.enter();
self.inner.call(req)
};
ResponseFuture {
Expand Down
2 changes: 1 addition & 1 deletion tonic-tracing-opentelemetry/src/middleware/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ where
let span = otel_http::grpc_client::make_span_from_request(&req);
otel_http::inject_context(&find_context_from_tracing(&span), req.headers_mut());
let future = {
let _ = span.enter();
let _enter = span.enter();
self.inner.call(req)
};
ResponseFuture {
Expand Down
2 changes: 1 addition & 1 deletion tonic-tracing-opentelemetry/src/middleware/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ where
tracing::Span::none()
};
let future = {
let _ = span.enter();
let _enter = span.enter();
self.inner.call(req)
};
ResponseFuture {
Expand Down

0 comments on commit ebb74c3

Please sign in to comment.