Skip to content

Commit 838c1bc

Browse files
committed
DROPME try
1 parent 48a42f1 commit 838c1bc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/vss-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
cd ldk-node
7676
export TEST_VSS_BASE_URL="http://localhost:8080/vss"
7777
RUSTFLAGS="--cfg vss_test" cargo build --verbose --color always
78-
RUSTFLAGS="--cfg vss_test" cargo test --test integration_tests_vss
78+
RUSTFLAGS="--cfg vss_test --cfg tokio_unstable" cargo test --test integration_tests_vss -- --nocapture
7979
8080
- name: Cleanup
8181
run: |

src/runtime.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ impl Runtime {
5555
// to detect the outer context here, and otherwise use whatever was set during
5656
// initialization.
5757
let handle = tokio::runtime::Handle::try_current().unwrap_or(self.handle());
58+
#[cfg(tokio_unstable)]
59+
{
60+
println!("Tokio blocking queue depth: {}", handle.metrics().blocking_queue_depth());
61+
println!(
62+
"Tokio num_blocking_threads {} / idle_blocking_threads {}",
63+
handle.metrics().num_blocking_threads(),
64+
handle.metrics().num_idle_blocking_threads()
65+
);
66+
}
5867
tokio::task::block_in_place(move || handle.block_on(future))
5968
}
6069

0 commit comments

Comments
 (0)