MCPcopy Create free account
hub / github.com/Moosync/Moosync / update_accounts

Method update_accounts

src-tauri/src/extensions/request_handler.rs:168–177  ·  view source on GitHub ↗
(&self, key: Option<String>)

Source from the content-addressed store, hash-verified

166 }
167
168 fn update_accounts(&self, key: Option<String>) -> Result<MainCommandResponse> {
169 let app_handle = self.app_handle.clone();
170 if let Some(key) = key {
171 tauri::async_runtime::spawn(async move {
172 let provider_handler: State<ProviderHandler> = app_handle.state();
173 let _ = provider_handler.request_account_status(key).await;
174 });
175 }
176 Ok(MainCommandResponse::UpdateAccounts(true))
177 }
178
179 #[tracing::instrument(level = "debug", skip(self, command))]
180 async fn send_ui_request(&self, mut command: MainCommand) -> Result<MainCommandResponse> {

Callers 1

handle_requestMethod · 0.80

Calls 2

cloneMethod · 0.80

Tested by

no test coverage detected