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

Method initialize_provider

src-tauri/src/providers/handler.rs:224–232  ·  view source on GitHub ↗
(&self, key: String)

Source from the content-addressed store, hash-verified

222
223 #[tracing::instrument(level = "debug", skip(self, key))]
224 pub async fn initialize_provider(&self, key: String) {
225 let provider_store = self.provider_store.read().await;
226 let provider = provider_store.get(&key);
227 if let Some(provider) = provider {
228 if let Err(e) = provider.initialize().await {
229 tracing::error!("Error initializing provider {}: {:?}", provider.key(), e);
230 }
231 }
232 }
233
234 #[tracing::instrument(level = "debug", skip(self))]
235 pub async fn initialize_all_providers(&self) -> Result<()> {

Callers 1

handle_pref_changesFunction · 0.80

Calls 2

getMethod · 0.80
initializeMethod · 0.45

Tested by

no test coverage detected