20260418 优化去掉冗余存储repo object,mix quick最快170s
This commit is contained in:
@@ -230,8 +230,16 @@ mod tests {
|
||||
let mut index = handle.lock().expect("lock index");
|
||||
index
|
||||
.apply_repository_view_entries(&[
|
||||
present("rsync://example.test/repo-b/", "rsync://example.test/repo-b/b.roa", &"22".repeat(32)),
|
||||
present("rsync://example.test/repo-a/", "rsync://example.test/repo-a/a.roa", &"11".repeat(32)),
|
||||
present(
|
||||
"rsync://example.test/repo-b/",
|
||||
"rsync://example.test/repo-b/b.roa",
|
||||
&"22".repeat(32),
|
||||
),
|
||||
present(
|
||||
"rsync://example.test/repo-a/",
|
||||
"rsync://example.test/repo-a/a.roa",
|
||||
&"11".repeat(32),
|
||||
),
|
||||
])
|
||||
.expect("apply present entries");
|
||||
assert_eq!(index.active_uri_count(), 2);
|
||||
|
||||
Reference in New Issue
Block a user