upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-18 09:24:10 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-18 09:24:10 +0000
commit85d621c791efaad1245c1aec8e5185a1eb78c7b9 (patch)
treec14544af0970c3a8a9519d697e48ae7de0f707b3 /docs/reference
parent0c01797812bb77fc81d0efe58f0e7858f2b7af66 (diff)
fix: break circular deadlock in sync loop by including purgatory in URL lookup
The sync loop calls fetch_repository_data() to get clone URLs so it knows where to fetch git data from. Previously this only queried the database, which means an announcement still in purgatory (no git data yet) would return no clone URLs, so the sync loop could never fetch the git data needed to promote the announcement - a circular deadlock. Fix by switching to fetch_repository_data_with_purgatory() which combines database announcements with purgatory announcements. Update the trait method's doc comment to document this behaviour. The mock implementation in tests is unaffected since it returns pre-configured data rather than delegating to either function.
Diffstat (limited to 'docs/reference')
0 files changed, 0 insertions, 0 deletions