mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 06:57:53 +01:00
Merge pull request #515 from romanz/init-height-metric
Initialize chain height metric
This commit is contained in:
commit
ed574ab4c1
1 changed files with 4 additions and 1 deletions
|
@ -86,12 +86,15 @@ impl Index {
|
|||
chain.load(headers, tip);
|
||||
};
|
||||
|
||||
let stats = Stats::new(metrics);
|
||||
stats.height.set(chain.height());
|
||||
|
||||
Ok(Index {
|
||||
store,
|
||||
batch_size,
|
||||
lookup_limit,
|
||||
chain,
|
||||
stats: Stats::new(metrics),
|
||||
stats,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue