Skip to content

Commit

Permalink
refactor(agent): use .envs instead of .env
Browse files Browse the repository at this point in the history
Signed-off-by: Zander Franks <[email protected]>
  • Loading branch information
voximity committed Apr 7, 2024
1 parent 8fa7022 commit 87c509e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/snops-agent/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ impl AgentService for AgentRpcServer {
command
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.envs(&node.env)
.arg("--log")
.arg(state.cli.path.join(SNARKOS_LOG_FILE))
.arg("run")
Expand All @@ -286,11 +287,6 @@ impl AgentService for AgentRpcServer {
.arg("--node")
.arg(state.cli.ports.node.to_string());

// inject environment variables
for (key, val) in &node.env {
command.env(key, val);
}

match node.private_key {
KeyState::None => {}
KeyState::Local => {
Expand Down

0 comments on commit 87c509e

Please sign in to comment.