Skip to content

Commit

Permalink
cargo
Browse files Browse the repository at this point in the history
Signed-off-by: tongjian <[email protected]>
  • Loading branch information
tongjian committed Apr 28, 2024
1 parent 2de40d2 commit 291d193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ prost = { version = "0.11", optional = true }
bytes = { version = "1.0", optional = true }
log = "0.4"
parking_lot = "0.12"
prometheus = { version = "0.13", default-features = false }
prometheus = { version = "0.13", default-features = false, optional=true}
lazy_static = "1"

[workspace]
Expand All @@ -46,7 +46,7 @@ exclude = ["xtask"]
[features]
default = ["protobuf-codec", "boringssl","prometheus"]
_secure = []
prometheus = []
prometheus = ["dep:prometheus"]
protobuf-codec = ["protobuf"]
protobufv3-codec = ["protobufv3"]
prost-codec = ["prost", "bytes"]
Expand Down
4 changes: 2 additions & 2 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use {
},
crate::task::resolve,
prometheus::{
core::{AtomicU64, GenericCounter},
core::{AtomicU64, Counter},
Histogram,
},
std::time::Instant,
Expand All @@ -28,7 +28,7 @@ pub struct GRPCRunner {
cq_next_duration_his: Histogram,
execute_duration_his: Histogram,
wait_duration_his: Histogram,
event_counter: [GenericCounter<AtomicU64>; 6],
event_counter: [Counter<AtomicU64>; 6],
}

#[cfg(feature = "prometheus")]
Expand Down

0 comments on commit 291d193

Please sign in to comment.