Skip to content

Commit c9c43ae

Browse files
author
Ludo Galabru
committed
fix: threading model
1 parent ad3654d commit c9c43ae

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/hord-cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ redis = "0.21.5"
1414
serde-redis = "0.12.0"
1515
hex = "0.4.3"
1616
rand = "0.8.5"
17-
chainhook-sdk = { version = "=0.7.6", default-features = false, features = ["zeromq"] }
17+
chainhook-sdk = { version = "=0.7.7", default-features = false, features = ["zeromq"] }
1818
hiro-system-kit = "0.1.0"
1919
clap = { version = "3.2.23", features = ["derive"], optional = true }
2020
clap_generate = { version = "3.0.3", optional = true }

components/hord-cli/src/db/mod.rs

-7
Original file line numberDiff line numberDiff line change
@@ -972,10 +972,6 @@ pub async fn fetch_and_cache_blocks_in_hord_db(
972972
};
973973
let _ = block_data_tx.send(res);
974974
});
975-
// TODO: remove this join?
976-
if block_height >= ordinal_computing_height {
977-
let _ = retrieve_block_data_pool.join();
978-
}
979975
}
980976
let res = retrieve_block_data_pool.join();
981977
res
@@ -997,9 +993,6 @@ pub async fn fetch_and_cache_blocks_in_hord_db(
997993
block_data,
998994
)));
999995
});
1000-
if block_height >= ordinal_computing_height {
1001-
let _ = compress_block_data_pool.join();
1002-
}
1003996
}
1004997
let res = compress_block_data_pool.join();
1005998
res

0 commit comments

Comments
 (0)