Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/contrail. atproto backend in a bottle flo-bit.dev/contrail
Something went wrong. Try again.
fix: avoid race condition while resolving PDS master
I noticed about 1/4 of identities in my app did not have a handle after backfill. Looks like getPDS over dids run twice over the same set of dids creates race condition. One is from this loop, and the other getPDS is invoked from getClient function. I tested with my set of data and edited variant always gives 100% of handles in identities table.
Author Bogdan Chadkin Date (May 11, 2026, 5:44 PM UTC) Commit 546a1225 546a12259185b66c0db333c69c164a2bf528f248 Parent 97bd6758 97bd675867e093660ef1485abf076b6090f088f3