diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-13 17:42:08 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-13 17:42:08 +0000 |
| commit | 8c903c9449d387c9b0edefa5aa283b176a3ed0cb (patch) | |
| tree | d885c26e717a5078b3fe4fc02d888574fb6046f3 /src/purgatory/sync | |
| parent | 1d09e4bdea7e328cf2740818df9df660c5532a99 (diff) | |
fix: revert wrong sync approach for purgatory announcements
The partial fix treating ProcessResult::Purgatory as confirmed in
pending_sync_index would trigger full L2/L3 sync for purgatory
announcements. Per design (decision #6), purgatory announcements
should only sync state events via SyncLevel::StateOnly (not yet
implemented).
Ignore test_archive_read_only_creates_bare_repo until SyncLevel
is implemented in Phase 3.
Diffstat (limited to 'src/purgatory/sync')
| -rw-r--r-- | src/purgatory/sync/context.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/purgatory/sync/context.rs b/src/purgatory/sync/context.rs index 778cdb8..33c2d12 100644 --- a/src/purgatory/sync/context.rs +++ b/src/purgatory/sync/context.rs | |||
| @@ -279,12 +279,7 @@ impl SyncContext for RealSyncContext { | |||
| 279 | } | 279 | } |
| 280 | 280 | ||
| 281 | async fn fetch_repository_data(&self, identifier: &str) -> Result<RepositoryData> { | 281 | async fn fetch_repository_data(&self, identifier: &str) -> Result<RepositoryData> { |
| 282 | crate::git::authorization::fetch_repository_data_with_purgatory( | 282 | crate::git::authorization::fetch_repository_data(&self.database, identifier).await |
| 283 | &self.database, | ||
| 284 | &self.purgatory, | ||
| 285 | identifier, | ||
| 286 | ) | ||
| 287 | .await | ||
| 288 | } | 283 | } |
| 289 | 284 | ||
| 290 | fn collect_needed_oids(&self, identifier: &str) -> HashSet<String> { | 285 | fn collect_needed_oids(&self, identifier: &str) -> HashSet<String> { |