Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeschastny committed Aug 9, 2024
1 parent 42146d8 commit 0778dfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/otlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ where
.tonic()
.with_export_config(export_config)
.into(),
Protocol::HttpJson => unreachable!("HttpJson protocol is not supported"),
};

let mut pipeline = opentelemetry_otlp::new_pipeline()
Expand Down Expand Up @@ -155,6 +156,7 @@ fn infer_export_config(
let endpoint = match protocol {
Protocol::HttpBinary => maybe_endpoint.unwrap_or("http://localhost:4318"),
Protocol::Grpc => maybe_endpoint.unwrap_or("http://localhost:4317"),
Protocol::HttpJson => unreachable!("HttpJson protocol is not supported"),
};

let timeout = match maybe_timeout {
Expand Down

0 comments on commit 0778dfe

Please sign in to comment.