Skip to content

Commit

Permalink
chore(tower-batch-control): remove dev-dependency on metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
bishopcheckmate committed Jan 21, 2024
1 parent 77ee350 commit 63057e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4674,7 +4674,6 @@ dependencies = [
"ed25519-zebra",
"futures",
"futures-core",
"metrics 0.22.0",
"pin-project",
"rand 0.8.5",
"rayon",
Expand Down
6 changes: 4 additions & 2 deletions tower-batch-control/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "tower-batch-control"
version = "0.2.41-beta.9"
authors = ["Zcash Foundation <[email protected]>", "Tower Maintainers <[email protected]>"]
authors = [
"Zcash Foundation <[email protected]>",
"Tower Maintainers <[email protected]>",
]
description = "Tower middleware for batch request processing"
# # Legal
#
Expand Down Expand Up @@ -34,7 +37,6 @@ tracing-futures = "0.2.5"

[dev-dependencies]
color-eyre = "0.6.2"
metrics = "0.22.0"
# This is a transitive dependency via color-eyre.
# Enable a feature that makes tinyvec compile much faster.
tinyvec = { version = "1.6.0", features = ["rustc_1_55"] }
Expand Down
2 changes: 0 additions & 2 deletions tower-batch-control/tests/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ impl Service<BatchControl<Item>> for Verifier {

if result.is_ok() {
tracing::trace!(?result, "validated ed25519 signature");
metrics::counter!("signatures.ed25519.validated").increment(1);
} else {
tracing::trace!(?result, "invalid ed25519 signature");
metrics::counter!("signatures.ed25519.invalid").increment(1);
}
result.map_err(BoxError::from)
}
Expand Down

0 comments on commit 63057e0

Please sign in to comment.