mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 06:57:58 +00:00
Prometheus: Use correct chain id (#10457)
* Prometheus: Use correct chain id * FMT
This commit is contained in:
@@ -365,7 +365,11 @@ impl CliConfiguration for RunCmd {
|
||||
Ok(self.shared_params.dev || self.force_authoring)
|
||||
}
|
||||
|
||||
fn prometheus_config(&self, default_listen_port: u16) -> Result<Option<PrometheusConfig>> {
|
||||
fn prometheus_config(
|
||||
&self,
|
||||
default_listen_port: u16,
|
||||
chain_spec: &Box<dyn ChainSpec>,
|
||||
) -> Result<Option<PrometheusConfig>> {
|
||||
Ok(if self.no_prometheus {
|
||||
None
|
||||
} else {
|
||||
@@ -377,7 +381,7 @@ impl CliConfiguration for RunCmd {
|
||||
interface.into(),
|
||||
self.prometheus_port.unwrap_or(default_listen_port),
|
||||
),
|
||||
self.shared_params.chain_id(self.shared_params.dev),
|
||||
chain_spec.id().into(),
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user