server: mcp + global: refactor

This commit is contained in:
nym21
2025-06-21 12:43:14 +02:00
parent c9e0f9d985
commit c3ae3cb768
92 changed files with 13601 additions and 12554 deletions

View File

@@ -106,7 +106,7 @@ where
Ok(())
}
pub fn path(&self) -> &Path {
pub fn path(&self) -> PathBuf {
self.inner.path()
}
@@ -136,7 +136,11 @@ where
self.computed_version.store(Arc::new(Some(version)));
if self.is_empty() {
info!("Computing {}...", self.name())
info!(
"Computing {}_to_{}...",
self.index_type_to_string(),
self.name()
)
}
Ok(())
@@ -1306,7 +1310,7 @@ where
}
#[inline]
fn name(&self) -> String {
fn name(&self) -> &str {
self.inner.name()
}
@@ -1321,7 +1325,7 @@ where
}
#[inline]
fn index_type_to_string(&self) -> String {
fn index_type_to_string(&self) -> &'static str {
I::to_string()
}