mirror of https://github.com/nucypher/nucypher.git
Apply suggestions from code review
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>pull/3405/head
parent
253a2067e3
commit
8dbaaaa8fd
|
@ -162,8 +162,8 @@ class StakingProviderMetricsCollector(BaseMetricsCollector):
|
|||
def initialize(self, registry: CollectorRegistry) -> None:
|
||||
self.metrics = {
|
||||
"active_stake_gauge": Gauge(
|
||||
"associated_active_stake",
|
||||
"Total amount of T staked (adapted NU/KEEP and liquid T)",
|
||||
"active_stake",
|
||||
"Total amount of T staked",
|
||||
registry=registry,
|
||||
),
|
||||
"operator_confirmed_gauge": Gauge(
|
||||
|
|
|
@ -129,7 +129,7 @@ def test_staking_provider_metrics_collector(test_registry, staking_providers):
|
|||
TACoApplicationAgent, registry=test_registry
|
||||
)
|
||||
|
||||
active_stake = collector_registry.get_sample_value("associated_active_stake")
|
||||
active_stake = collector_registry.get_sample_value("active_stake")
|
||||
# only floats can be stored
|
||||
assert active_stake == float(
|
||||
int(
|
||||
|
|
Loading…
Reference in New Issue