From b629bcb05b95c700b249d519529e9b6846106df4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 25 Nov 2025 13:38:08 +0800 Subject: Rename `virtual_file_action.rs` to `track_action.rs` --- crates/vcs_actions/src/actions.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'crates/vcs_actions/src/actions.rs') diff --git a/crates/vcs_actions/src/actions.rs b/crates/vcs_actions/src/actions.rs index 87c0231..d3c0dd6 100644 --- a/crates/vcs_actions/src/actions.rs +++ b/crates/vcs_actions/src/actions.rs @@ -17,9 +17,9 @@ use vcs_data::{ pub mod local_actions; pub mod sheet_actions; +pub mod track_action; pub mod user_actions; pub mod vault_actions; -pub mod virtual_file_actions; /// Check if the connection instance is valid in the given context. /// This function is used to verify the connection instance in actions that require remote calls. @@ -175,11 +175,12 @@ pub async fn get_current_sheet_name( // Check if sheet exists if let Ok(sheet) = vault.sheet(&sheet_name).await && let Some(holder) = sheet.holder() - && holder == member_id { - // Tell local the check is passed - mut_instance.write_msgpack(true).await?; - return Ok(sheet_name.clone()); - } + && holder == member_id + { + // Tell local the check is passed + mut_instance.write_msgpack(true).await?; + return Ok(sheet_name.clone()); + } // Tell local the check is not passed mut_instance.write_msgpack(false).await?; return Err(TcpTargetError::NotFound("Sheet not found".to_string())); -- cgit