Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 9c6f66e

Browse files
authored
add WORKER_P2P_SEED that is replaced in task args on worker side with own seed (#349)
1 parent 66cea22 commit 9c6f66e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

crates/worker/src/docker/service.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,13 @@ impl DockerService {
192192
let cmd = match cmd_full {
193193
(Some(c), Some(a)) => {
194194
let mut cmd = vec![c];
195-
cmd.extend(a);
195+
cmd.extend(a.into_iter().map(|arg| {
196+
if let Some(seed) = p2p_seed {
197+
arg.replace("${WORKER_P2P_SEED}", &seed.to_string())
198+
} else {
199+
arg
200+
}
201+
}));
196202
cmd
197203
}
198204
(Some(c), None) => vec![c],

0 commit comments

Comments
 (0)