Skip to content

Commit b34142d

Browse files
committed
feat: fix comment
1 parent 0f1b1b5 commit b34142d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fendermint/vm/topdown/proof-service/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ humantime-serde = { workspace = true }
2121
cid = { workspace = true }
2222
multihash = { workspace = true }
2323
rocksdb = { version = "0.21", features = ["multi-threaded-cf"] }
24+
futures = { workspace = true }
2425

2526
# Fendermint
2627
fendermint_actor_f3_cert_manager = { path = "../../../actors/f3-cert-manager" }

fendermint/vm/topdown/proof-service/src/assembler.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ impl ProofAssembler {
152152

153153
// Generate proof bundle in blocking task (proofs library uses non-Send types)
154154
let bundle = tokio::task::spawn_blocking(move || {
155-
// Create a new tokio runtime for the blocking task
156-
let rt = tokio::runtime::Handle::current();
157-
rt.block_on(generate_proof_bundle(
155+
// Use futures::executor to run async code without blocking the parent runtime
156+
futures::executor::block_on(generate_proof_bundle(
158157
&lotus_client,
159158
&parent_api,
160159
&child_api,

0 commit comments

Comments
 (0)