mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 02:51:08 +00:00
Make unbounded channels size warning exact (part 2) (#13504)
This commit is contained in:
@@ -24,7 +24,6 @@ use prometheus::{
|
||||
Error as PrometheusError, Registry,
|
||||
};
|
||||
|
||||
#[cfg(feature = "metered")]
|
||||
use prometheus::{core::GenericCounterVec, Opts};
|
||||
|
||||
lazy_static! {
|
||||
@@ -36,7 +35,6 @@ lazy_static! {
|
||||
.expect("Creating of statics doesn't fail. qed");
|
||||
}
|
||||
|
||||
#[cfg(feature = "metered")]
|
||||
lazy_static! {
|
||||
pub static ref UNBOUNDED_CHANNELS_COUNTER : GenericCounterVec<AtomicU64> = GenericCounterVec::new(
|
||||
Opts::new("substrate_unbounded_channel_len", "Items in each mpsc::unbounded instance"),
|
||||
@@ -49,8 +47,6 @@ lazy_static! {
|
||||
pub fn register_globals(registry: &Registry) -> Result<(), PrometheusError> {
|
||||
registry.register(Box::new(TOKIO_THREADS_ALIVE.clone()))?;
|
||||
registry.register(Box::new(TOKIO_THREADS_TOTAL.clone()))?;
|
||||
|
||||
#[cfg(feature = "metered")]
|
||||
registry.register(Box::new(UNBOUNDED_CHANNELS_COUNTER.clone()))?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user