Skip to content

Conversation

@rickyrombo
Copy link
Contributor

Naive polling fix to account for race condition where the post request is made before indexing completed.

  1. Add a timeout to the request context (arbitrary 10s)
  2. Poll for the balance change (arbitrary 200ms delay)
  3. Move the prize already claimed check to after the polling (now realizing this doesn't matter, but w/e)

Copy link
Member

@raymondjacobson raymondjacobson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need rebase i think

@rickyrombo rickyrombo merged commit 3256863 into main Dec 17, 2025
4 checks passed
@rickyrombo rickyrombo deleted the mjp-fix-race branch December 17, 2025 23:26
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.

3 participants