mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
fixed metrics prefix (#1037)
This commit is contained in:
committed by
Bastian Köcher
parent
84da766881
commit
084c2e6c64
@@ -185,7 +185,13 @@ pub async fn run(
|
||||
max_messages_weight_in_single_batch,
|
||||
);
|
||||
|
||||
let (metrics_params, _) = add_standalone_metrics(params.metrics_params, source_client.clone())?;
|
||||
let (metrics_params, _) = add_standalone_metrics(
|
||||
Some(messages_relay::message_lane_loop::metrics_prefix::<
|
||||
RococoMessagesToWococo,
|
||||
>(&lane_id)),
|
||||
params.metrics_params,
|
||||
source_client.clone(),
|
||||
)?;
|
||||
messages_relay::message_lane_loop::run(
|
||||
messages_relay::message_lane_loop::Params {
|
||||
lane: lane_id,
|
||||
@@ -224,10 +230,12 @@ pub async fn run(
|
||||
|
||||
/// Add standalone metrics for the Rococo -> Wococo messages loop.
|
||||
pub(crate) fn add_standalone_metrics(
|
||||
metrics_prefix: Option<String>,
|
||||
metrics_params: MetricsParams,
|
||||
source_client: Client<Rococo>,
|
||||
) -> anyhow::Result<(MetricsParams, StandaloneMessagesMetrics)> {
|
||||
crate::messages_lane::add_standalone_metrics::<RococoMessagesToWococo>(
|
||||
metrics_prefix,
|
||||
metrics_params,
|
||||
source_client,
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user