Skip to content

Commit

Permalink
Abolish private ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnski committed Aug 28, 2023
1 parent 1ebe092 commit 4342352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions polkadot/node/core/pvf/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ pub mod worker;

pub use cpu_time::ProcessTime;

/// DO NOT USE - internal for macros only.
#[doc(hidden)]
pub mod __private {
pub use sp_tracing::try_init_simple;
}
// Used by `decl_worker_main!`.
#[cfg(feature = "test-utils")]
pub use sp_tracing;

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

Expand Down
2 changes: 1 addition & 1 deletion polkadot/node/core/pvf/common/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ macro_rules! decl_worker_main {
}

fn main() {
$crate::__private::try_init_simple();
$crate::sp_tracing::try_init_simple();

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

0 comments on commit 4342352

Please sign in to comment.