20260608 默认rsync scope切到module-root

This commit is contained in:
2026-06-08 13:23:16 +08:00
parent 8e6e2f1318
commit d0224d53f6
4 changed files with 9 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ pub enum RsyncScopePolicy {
impl Default for RsyncScopePolicy {
fn default() -> Self {
Self::Host
Self::ModuleRoot
}
}
@@ -563,15 +563,15 @@ mod tests {
}
#[test]
fn system_rsync_dedup_key_uses_host_scope_by_default() {
fn system_rsync_dedup_key_uses_module_root_by_default() {
let fetcher = SystemRsyncFetcher::new(SystemRsyncConfig::default());
assert_eq!(
fetcher.dedup_key("rsync://example.net/repo/ta/ca/publication-point/"),
"rsync://example.net/repo/ta/ca/publication-point/"
"rsync://example.net/repo/"
);
assert_eq!(
fetcher.failure_dedup_key("rsync://example.net/repo/ta/ca/publication-point/"),
Some("rsync://example.net/".to_string())
None
);
}