summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-10-27 17:50:05 +0800
committer魏曹先生 <1992414357@qq.com>2025-10-27 17:50:05 +0800
commit5212da62bb6d7b3e0eb8d9b2801cc8d1d7ef4ece (patch)
tree0fc48f36cda46febd425e31e8dad890fb51937d4
parentcab9c998bcb2a6ea4ee51ff39d708ac6755dcb75 (diff)
update: Remove `hello_world_action`
-rw-r--r--crates/vcs_actions/src/actions/local_actions.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/crates/vcs_actions/src/actions/local_actions.rs b/crates/vcs_actions/src/actions/local_actions.rs
index e2788ff..f705692 100644
--- a/crates/vcs_actions/src/actions/local_actions.rs
+++ b/crates/vcs_actions/src/actions/local_actions.rs
@@ -5,27 +5,6 @@ use log::info;
use tcp_connection::error::TcpTargetError;
#[action_gen]
-pub async fn hello_world_action(ctx: ActionContext, _n: ()) -> Result<(), TcpTargetError> {
- // Ensure the instance is available
- let Some(instance) = ctx.instance() else {
- return Err(TcpTargetError::NotFound(
- "Connection Instance Lost.".to_string(),
- ));
- };
-
- if ctx.is_proc_on_local() {
- // Local execution - communication is handled by on_proc_begin
- info!("Hello World action executed locally");
- } else if ctx.is_proc_on_remote() {
- // Remote execution - read the message from the client
- let read = instance.lock().await.read_text().await?;
- info!("{}", read)
- }
-
- Ok(())
-}
-
-#[action_gen]
pub async fn set_upstream_vault_action(
ctx: ActionContext,
_upstream: SocketAddr,