Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw committed Jul 26, 2024
1 parent aa50aae commit b916cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eth/rpc/rpc_subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl RpcSubscriptionsConnected {
filter_to_subscription_map.insert(filter.clone(), SubscriptionWithFilter::new(inner, filter));

#[cfg(feature = "metrics")]
let sub_count = self.logs.read().await.values().flat_map(HashMap::values).count();
let sub_count = subs.values().flat_map(HashMap::values).count();
#[cfg(feature = "metrics")]
metrics::set_rpc_subscriptions_active(sub_count as u64, label::LOGS);
}
Expand Down

0 comments on commit b916cf1

Please sign in to comment.