mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-28 11:18:17 -07:00
global: metrics -> series rename
This commit is contained in:
@@ -17,12 +17,12 @@ pub fn main() -> brk_error::Result<()> {
|
||||
|
||||
let vecs = Vecs::build(&indexer_ro, &computer_ro);
|
||||
|
||||
let out_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("metrics.txt");
|
||||
let content = vecs.metrics.join("\n");
|
||||
let out_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("series.txt");
|
||||
let content = vecs.series.join("\n");
|
||||
fs::write(&out_path, &content)?;
|
||||
eprintln!(
|
||||
"Wrote {} metrics to {}",
|
||||
vecs.metrics.len(),
|
||||
"Wrote {} series to {}",
|
||||
vecs.series.len(),
|
||||
out_path.display()
|
||||
);
|
||||
|
||||
|
||||
@@ -67,14 +67,14 @@ pub fn main() -> Result<()> {
|
||||
"bc1qwzrryqr3ja8w7hnja2spmkgfdcgvqwp5swz4af4ngsjecfz0w0pqud7k38".to_string()
|
||||
)));
|
||||
|
||||
// dbg!(query.search_and_format(MetricSelection {
|
||||
// dbg!(query.search_and_format(SeriesSelection {
|
||||
// index: Index::Height,
|
||||
// metrics: vec!["date"].into(),
|
||||
// series: vec!["date"].into(),
|
||||
// range: DataRangeFormat::default().set_from(-1),
|
||||
// })?);
|
||||
// dbg!(query.search_and_format(MetricSelection {
|
||||
// dbg!(query.search_and_format(SeriesSelection {
|
||||
// index: Index::Height,
|
||||
// metrics: vec!["date", "timestamp"].into(),
|
||||
// series: vec!["date", "timestamp"].into(),
|
||||
// range: DataRangeFormat::default().set_from(-10).set_count(5),
|
||||
// })?);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user