diff options
Diffstat (limited to 'crates/vcs_actions/src/actions/local_actions.rs')
| -rw-r--r-- | crates/vcs_actions/src/actions/local_actions.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crates/vcs_actions/src/actions/local_actions.rs b/crates/vcs_actions/src/actions/local_actions.rs index c19b8f0..c2d9f4f 100644 --- a/crates/vcs_actions/src/actions/local_actions.rs +++ b/crates/vcs_actions/src/actions/local_actions.rs @@ -14,11 +14,10 @@ pub async fn hello_world_action(ctx: ActionContext, _n: ()) -> Result<(), TcpTar }; if ctx.is_local() { - // Invoke on local - // Send the message to the server - let _ = instance.lock().await.write_text("Hello World!").await; + // Local execution - communication is handled by on_proc_begin + info!("Hello World action executed locally"); } else if ctx.is_remote() { - // Read the message from the client + // Remote execution - read the message from the client let read = instance.lock().await.read_text().await?; info!("{}", read) } @@ -43,9 +42,9 @@ pub async fn set_upstream_vault_action( // Send the message to the server let _ = instance.lock().await.write_text("Hello World!").await; } else if ctx.is_remote() { - // Read the message from the client + // Remote execution - read the message from the client let read = instance.lock().await.read_text().await?; - info!("{}", read) + info!("Received: {}", read) } Ok(()) |
