Skip to content

Commit 5352b72

Browse files
committed
remove unused error_map(s)
1 parent bd374dd commit 5352b72

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apollo-router/src/plugins/telemetry/error_handler.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ mod tests {
88
use std::sync::Arc;
99
use std::time::Duration;
1010

11-
use dashmap::DashMap;
1211
use parking_lot::Mutex;
1312
use tracing_core::Event;
1413
use tracing_core::Field;
@@ -23,7 +22,6 @@ mod tests {
2322

2423
#[tokio::test]
2524
async fn test_handle_error_throttling() {
26-
let error_map = DashMap::new();
2725
// Set up a fake subscriber so we can check log events. If this is useful then maybe it can be factored out into something reusable
2826
#[derive(Default)]
2927
struct TestVisitor {
@@ -83,7 +81,6 @@ mod tests {
8381
#[tokio::test]
8482
async fn test_cardinality_overflow() {
8583
async {
86-
let error_map = DashMap::new();
8784
let msg = "Warning: Maximum data points for metric stream exceeded. Entry added to overflow. Subsequent overflows to same metric until next collect will not be logged.";
8885
::tracing::warn!("{}", msg);
8986

0 commit comments

Comments
 (0)