Skip to content

Commit

Permalink
Use correct version in the workers
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Sep 11, 2023
1 parent 7d24ac0 commit b765002
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 @@ -33,7 +33,7 @@ use tokio::{io, net::UnixStream, runtime::Runtime};
/// spawning the desired worker.
#[macro_export]
macro_rules! decl_worker_main {
($expected_command:expr, $entrypoint:expr, $worker_version:expr) => {
($expected_command:expr, $entrypoint:expr, $worker_version:expr $(,)*) => {
fn print_help(expected_command: &str) {
println!("{} {}", expected_command, $worker_version);
println!();
Expand Down
2 changes: 1 addition & 1 deletion polkadot/src/bin/execute-worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
polkadot_node_core_pvf_common::decl_worker_main!(
"execute-worker",
polkadot_node_core_pvf_execute_worker::worker_entrypoint,
env!("SUBSTRATE_CLI_IMPL_VERSION")
polkadot_cli::NODE_VERSION,
);
2 changes: 1 addition & 1 deletion polkadot/src/bin/prepare-worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
polkadot_node_core_pvf_common::decl_worker_main!(
"prepare-worker",
polkadot_node_core_pvf_prepare_worker::worker_entrypoint,
env!("SUBSTRATE_CLI_IMPL_VERSION")
polkadot_cli::NODE_VERSION,
);

0 comments on commit b765002

Please sign in to comment.