Skip to content

Commit 7cef7cd

Browse files
authored
PVF: Take back a stolen right (#1207)
1 parent 5559b75 commit 7cef7cd

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

polkadot/node/core/pvf/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ assert_matches = "1.4.0"
4747
hex-literal = "0.3.4"
4848
polkadot-node-core-pvf-common = { path = "common", features = ["test-utils"] }
4949
# For the puppet worker, depend on ourselves with the test-utils feature.
50-
polkadot-node-core-pvf = { path = "", features = ["test-utils"] }
50+
polkadot-node-core-pvf = { path = ".", features = ["test-utils"] }
5151

5252
adder = { package = "test-parachain-adder", path = "../../../parachain/test-parachains/adder" }
5353
halt = { package = "test-parachain-halt", path = "../../../parachain/test-parachains/halt" }

polkadot/node/core/pvf/common/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ pub mod worker;
2525

2626
pub use cpu_time::ProcessTime;
2727

28-
/// DO NOT USE - internal for macros only.
29-
#[doc(hidden)]
30-
pub mod __private {
31-
pub use sp_tracing::try_init_simple;
32-
}
28+
// Used by `decl_worker_main!`.
29+
pub use sp_tracing;
3330

3431
const LOG_TARGET: &str = "parachain::pvf-common";
3532

polkadot/node/core/pvf/common/src/worker/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ macro_rules! decl_worker_main {
4141
}
4242

4343
fn main() {
44-
$crate::__private::try_init_simple();
44+
// TODO: Remove this dependency, and `pub use sp_tracing` in `lib.rs`.
45+
// See <https://github.com/paritytech/polkadot/issues/7117>.
46+
$crate::sp_tracing::try_init_simple();
4547

4648
let args = std::env::args().collect::<Vec<_>>();
4749
if args.len() == 1 {

0 commit comments

Comments
 (0)