summaryrefslogtreecommitdiff
path: root/systems/sheet/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-15 19:17:03 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-15 19:17:03 +0800
commitb76b0e06520b37b0691611434857d4c1d3b290dc (patch)
tree6ef27ca9156faa545be8f137b7dd2f66f3c4549f /systems/sheet/src
parent2c61872cea2ad06e2d49f1ddd457ebc9b795fb7d (diff)
Add benchmark for ID alias operations
Diffstat (limited to 'systems/sheet/src')
-rw-r--r--systems/sheet/src/index_source/alias.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/systems/sheet/src/index_source/alias.rs b/systems/sheet/src/index_source/alias.rs
index 4a8f0ad..d50c183 100644
--- a/systems/sheet/src/index_source/alias.rs
+++ b/systems/sheet/src/index_source/alias.rs
@@ -101,7 +101,7 @@ async fn alias_exists(aliases_dir: PathBuf, local_id: u32) -> Result<bool, IDAli
Ok(remote_id != 0)
}
-async fn convert_to_remote(aliases_dir: PathBuf, local_id: u32) -> Result<u32, IDAliasError> {
+pub async fn convert_to_remote(aliases_dir: PathBuf, local_id: u32) -> Result<u32, IDAliasError> {
ensure_aliases_dir(&aliases_dir).await?;
let (file_index, offset) = get_file_path_and_offset(local_id);