diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-30 09:23:02 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-30 09:23:02 +0800 |
| commit | 941e5d1317b5ed562df2a172de717a5a7408ee15 (patch) | |
| tree | c679a5c0d16d38e51f3b66caba212c4ba93bd3a0 /crates/vcs_actions/src/registry/client_registry.rs | |
| parent | cc43704e7412ef82f6d41ba211b50e26307a3ddf (diff) | |
Change auth_member to return MemberId on success
The authentication function now returns the authenticated member's ID
instead of just () when successful. This provides callers with access to
the authenticated member's identity for subsequent operations.
Diffstat (limited to 'crates/vcs_actions/src/registry/client_registry.rs')
| -rw-r--r-- | crates/vcs_actions/src/registry/client_registry.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/vcs_actions/src/registry/client_registry.rs b/crates/vcs_actions/src/registry/client_registry.rs index 6f820e6..dcad657 100644 --- a/crates/vcs_actions/src/registry/client_registry.rs +++ b/crates/vcs_actions/src/registry/client_registry.rs @@ -52,7 +52,9 @@ async fn on_proc_begin( let local_workspace = match LocalWorkspace::init_current_dir(local_config) { Some(workspace) => workspace, None => { - return Err(TcpTargetError::NotFound("Failed to initialize local workspace.".to_string())); + return Err(TcpTargetError::NotFound( + "Failed to initialize local workspace.".to_string(), + )); } }; let local_workspace_arc = Arc::new(local_workspace); |
