Skip to content

fix: avoid race condition while resolving PDS#42

Open
TrySound wants to merge 1 commit into
flo-bit:mainfrom
TrySound:drop-bg
Open

fix: avoid race condition while resolving PDS#42
TrySound wants to merge 1 commit into
flo-bit:mainfrom
TrySound:drop-bg

Conversation

@TrySound
Copy link
Copy Markdown

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant