parser: fixed hanging + global: snapshot

This commit is contained in:
nym21
2025-02-23 21:53:39 +01:00
parent 19cf34f9d4
commit 8acbcc548c
30 changed files with 372 additions and 383 deletions

View File

@@ -1,7 +1,7 @@
[package]
name = "brk_server"
description = "A Bitcoin data server built on top of bindexer, bricer and bomputer"
version = "0.1.0"
version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
@@ -9,7 +9,7 @@ license = { workspace = true }
axum = "0.8.1"
brk_computer = { workspace = true }
brk_indexer = { workspace = true }
brk_printer = { workspace = true }
brk_logger = { workspace = true }
color-eyre = { workspace = true }
derive_deref = { workspace = true }
jiff = { workspace = true }

View File

@@ -22,7 +22,7 @@ pub struct AppState {
computer: &'static Computer<STATELESS>,
}
pub const WEBSITE_DEV_PATH: &str = "../websites/kibo.money/";
pub const WEBSITE_DEV_PATH: &str = "../../websites/kibo.money/";
pub async fn main(indexer: Indexer<STATELESS>, computer: Computer<STATELESS>) -> color_eyre::Result<()> {
let indexer = Box::leak(Box::new(indexer));

View File

@@ -8,9 +8,9 @@ use storable_vec::STATELESS;
pub async fn main() -> color_eyre::Result<()> {
color_eyre::install()?;
brk_printer::init_log(None);
brk_logger::init(None);
let path = Path::new("../_outputs");
let path = Path::new("../../_outputs");
let indexer: Indexer<STATELESS> = Indexer::import(&path.join("indexes"))?;
let computer: Computer<STATELESS> = Computer::import(&path.join("computed"))?;