Skip to content

Commit a625602

Browse files
committed
Fix build and CR comment
1 parent 1378be6 commit a625602

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

quickwit/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quickwit/quickwit-aws/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@ aws-smithy-types = { workspace = true }
2323
futures = { workspace = true }
2424
mini-moka = { workspace = true }
2525
tokio = { workspace = true }
26+
tracing = { workspace = true }
2627

2728
quickwit-common = { workspace = true }
2829

2930
[features]
3031
kinesis = ["aws-sdk-kinesis"]
3132
sqs = ["aws-sdk-sqs"]
33+
34+
[package.metadata.cargo-machete]
35+
# tracing is only referenced from inside quickwit_common's rate_limited_* macros
36+
# (via an absolute `::tracing::` path), so it doesn't show up textually in this crate.
37+
ignored = ["tracing"]

quickwit/quickwit-aws/src/dns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl ResolveDns for CachingDnsResolver {
136136
let dns_entry_opt: Option<Arc<DnsEntry>> = cache.get(&host);
137137
// First insertion CAN trigger several DNS call, but this is not a problem.
138138
let dns_entry: Arc<DnsEntry> = if let Some(dns_entry) = dns_entry_opt {
139-
dns_entry.clone()
139+
dns_entry
140140
} else {
141141
let dns_entry = Arc::new(DnsEntry::new());
142142
cache.insert(host.clone(), dns_entry.clone());

0 commit comments

Comments
 (0)