Skip to content

Commit

Permalink
fix: threading model
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Jul 21, 2023
1 parent ad3654d commit c9c43ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/hord-cli/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ redis = "0.21.5"
serde-redis = "0.12.0"
hex = "0.4.3"
rand = "0.8.5"
chainhook-sdk = { version = "=0.7.6", default-features = false, features = ["zeromq"] }
chainhook-sdk = { version = "=0.7.7", default-features = false, features = ["zeromq"] }
hiro-system-kit = "0.1.0"
clap = { version = "3.2.23", features = ["derive"], optional = true }
clap_generate = { version = "3.0.3", optional = true }
Expand Down
7 changes: 0 additions & 7 deletions components/hord-cli/src/db/mod.rs
Expand Up @@ -972,10 +972,6 @@ pub async fn fetch_and_cache_blocks_in_hord_db(
};
let _ = block_data_tx.send(res);
});
// TODO: remove this join?
if block_height >= ordinal_computing_height {
let _ = retrieve_block_data_pool.join();
}
}
let res = retrieve_block_data_pool.join();
res
Expand All @@ -997,9 +993,6 @@ pub async fn fetch_and_cache_blocks_in_hord_db(
block_data,
)));
});
if block_height >= ordinal_computing_height {
let _ = compress_block_data_pool.join();
}
}
let res = compress_block_data_pool.join();
res
Expand Down

0 comments on commit c9c43ae

Please sign in to comment.