mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
global: init readmes
This commit is contained in:
@@ -2,18 +2,22 @@ use std::path::Path;
|
||||
|
||||
use brk_computer::Computer;
|
||||
use brk_indexer::Indexer;
|
||||
use hodor::Exit;
|
||||
use hodor::Hodor;
|
||||
|
||||
pub fn main() -> color_eyre::Result<()> {
|
||||
color_eyre::install()?;
|
||||
|
||||
let exit = Exit::new();
|
||||
let hodor = Hodor::new();
|
||||
|
||||
let i = std::time::Instant::now();
|
||||
|
||||
let outputs_dir = Path::new("../_outputs");
|
||||
let outputs_dir = Path::new("../../_outputs");
|
||||
|
||||
Computer::import(&outputs_dir.join("computed"))?.compute(Indexer::import(&outputs_dir.join("indexes"))?, &exit)?;
|
||||
let indexer = Indexer::import(&outputs_dir.join("indexes"))?;
|
||||
|
||||
let mut computer = Computer::import(&outputs_dir.join("computed"))?;
|
||||
|
||||
computer.compute(indexer, &hodor)?;
|
||||
|
||||
dbg!(i.elapsed());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user