Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the race condition probability #559

Merged
merged 1 commit into from
Feb 1, 2025
Merged

Conversation

fersingb
Copy link
Contributor

Small change which should fix most of the "glitches" observed where the defi_hilo state goes to "off" for no reason.

This PR slightly changes the way the _next_events list is updated, significantly reducing the race condition time window. Instead of clearing the list and performing a network call afterwards, we perform the network call, populate a temp list and then assign the content of the temp list to _next_events

@ic-dev21 ic-dev21 merged commit 6b5eef8 into dvd-dev:main Feb 1, 2025
3 checks passed
@ic-dev21
Copy link
Collaborator

ic-dev21 commented Feb 1, 2025

Closes #537

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.

2 participants