Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bottlecap/src/metrics/enhanced/lambda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,12 @@ impl Lambda {
}
}

#[allow(unreachable_code)]
#[allow(unused_variables)]
#[allow(unused_mut)]
pub fn set_tmp_enhanced_metrics(&self, mut send_metrics: Receiver<()>) {
// Temporarily disabled
return;
if !self.config.enhanced_metrics {
return;
}
Expand Down Expand Up @@ -543,7 +548,12 @@ impl Lambda {
}
}

#[allow(unreachable_code)]
#[allow(unused_variables)]
#[allow(unused_mut)]
pub fn set_process_enhanced_metrics(&self, mut send_metrics: Receiver<()>) {
// Temporarily disabled
return;
if !self.config.enhanced_metrics {
return;
}
Expand Down