summaryrefslogtreecommitdiff
path: root/examples/src/bin/example_action_system.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-10-13 14:27:59 +0800
committerGitHub <noreply@github.com>2025-10-13 14:27:59 +0800
commitb9bbfb31bee88f6b10a9cc5b49e7618bef9d0be5 (patch)
treeef02095c73635b5ace574c26dfcb999017e34897 /examples/src/bin/example_action_system.rs
parentc1d862d6df58173c24604e4dda33db8ce3be3ad7 (diff)
parent4810f56e6a49b60923eb850d5944457650c81c75 (diff)
Merge pull request #21 from JustEnoughVCS/jvcs_dev
Jvcs dev
Diffstat (limited to 'examples/src/bin/example_action_system.rs')
-rw-r--r--examples/src/bin/example_action_system.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/bin/example_action_system.rs b/examples/src/bin/example_action_system.rs
index a659eb3..c873a2e 100644
--- a/examples/src/bin/example_action_system.rs
+++ b/examples/src/bin/example_action_system.rs
@@ -4,9 +4,9 @@ use tcp_connection::error::TcpTargetError;
#[tokio::main]
async fn main() {
let mut pool = ActionPool::new();
- PrintNameAction::register_to_pool(&mut pool);
+ register_print_name_action(&mut pool);
- PrintNameAction::process_at_pool(&pool, ActionContext::local(), "World".to_string())
+ proc_print_name_action(&pool, ActionContext::local(), "World".to_string())
.await
.unwrap();
}