We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c2500 commit 1a4c075Copy full SHA for 1a4c075
src/lib_context.rs
@@ -346,12 +346,10 @@ pub(crate) async fn init_lib_context(settings: Option<settings::Settings>) -> Re
346
}
347
348
pub(crate) async fn get_lib_context() -> Result<Arc<LibContext>> {
349
- debug!("Get lib context");
350
let mut lib_context_locked = LIB_CONTEXT.lock().await;
351
let lib_context = if let Some(lib_context) = &*lib_context_locked {
352
lib_context.clone()
353
} else {
354
- debug!("Get lib context: no lib context found, creating new one");
355
let setting = get_settings()?;
356
let lib_context = Arc::new(create_lib_context(setting).await?);
357
*lib_context_locked = Some(lib_context.clone());
0 commit comments