Skip to content

Commit 365dd91

Browse files
committed
rebase fixes
1 parent e958d0f commit 365dd91

File tree

5 files changed

+42
-215
lines changed

5 files changed

+42
-215
lines changed

bottlecap/Cargo.lock

Lines changed: 22 additions & 199 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bottlecap/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ datadog-trace-protobuf = { git = "https://github.com/DataDog/libdatadog", rev =
5757
datadog-trace-utils = { git = "https://github.com/DataDog/libdatadog", rev = "8a49c7df2d9cbf05118bfd5b85772676f71b34f2" , features = ["mini_agent"] }
5858
datadog-trace-normalization = { git = "https://github.com/DataDog/libdatadog", rev = "8a49c7df2d9cbf05118bfd5b85772676f71b34f2" }
5959
datadog-trace-obfuscation = { git = "https://github.com/DataDog/libdatadog", rev = "8a49c7df2d9cbf05118bfd5b85772676f71b34f2" }
60-
dogstatsd = { git = "https://github.com/DataDog/serverless-components", rev = "985120329d0ba96c1ec8d719cc38e1f7ce11a092", default-features = false }
61-
datadog-trace-agent = { git = "https://github.com/DataDog/serverless-components", rev = "c3d8ed4f90591c6958921145d485463860307f78" }
62-
datadog-fips = { git = "https://github.com/DataDog/serverless-components", rev = "c3d8ed4f90591c6958921145d485463860307f78", default-features = false }
60+
dogstatsd = { git = "https://github.com/DataDog/serverless-components", rev = "5b8d3d5837a563a23264862df2222aac3e60c583", default-features = false }
61+
datadog-trace-agent = { git = "https://github.com/DataDog/serverless-components", rev = "5b8d3d5837a563a23264862df2222aac3e60c583" }
62+
datadog-fips = { git = "https://github.com/DataDog/serverless-components", rev = "5b8d3d5837a563a23264862df2222aac3e60c583", default-features = false }
6363
axum = { version = "0.8.4", default-features = false, features = ["default"] }
6464

6565
[dev-dependencies]

bottlecap/src/otlp/agent.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ impl Agent {
7070
self.cancel_token.clone()
7171
}
7272

73-
// TODO (Yiming): Fix this lint
74-
#[allow(clippy::ref_option)]
75-
fn parse_port(endpoint: &Option<String>, default_port: u16) -> u16 {
73+
fn parse_port(endpoint: Option<&String>, default_port: u16) -> u16 {
7674
if let Some(endpoint) = endpoint {
7775
let port = endpoint.split(':').nth(1);
7876
if let Some(port) = port {

bottlecap/src/proxy/interceptor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ async fn graceful_shutdown(tasks: Arc<Mutex<JoinSet<()>>>, shutdown_token: Cance
110110
/// If the LWA proxy lambda runtime API is not provided, the default Extension
111111
/// host and port will be used.
112112
///
113-
// TODO (Yiming): Fix this lint
114-
#[allow(clippy::ref_option)]
115-
fn get_proxy_socket_address(aws_lwa_proxy_lambda_runtime_api: &Option<String>) -> SocketAddr {
113+
fn get_proxy_socket_address(aws_lwa_proxy_lambda_runtime_api: Option<&String>) -> SocketAddr {
116114
if let Some(socket_addr) = aws_lwa_proxy_lambda_runtime_api
117115
.and_then(|uri_str| lwa::get_lwa_proxy_socket_address(uri_str).ok())
118116
{

0 commit comments

Comments
 (0)