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

Remove the use of executor in ThreadUtils #1520

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

simophin
Copy link

Description

The executor inside ThreadUtils is causing RejectedException from time to time. This would fail at different kind of jobs randomly, some of which might impact the message syncing functionality. This PR removes the usage of the executor and use coroutine's dispatcher where such rejection doesn't happen.

Copy link
Collaborator

@ThomasSession ThomasSession left a comment

Choose a reason for hiding this comment

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

Hoping this can all go away when we remove kovenant

Copy link
Collaborator

@AL-Session AL-Session left a comment

Choose a reason for hiding this comment

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

Code seems fine & just tested the CI build - all seems to be working as good as can be expected and not seeing any crashes when sending a bunch of messages. Approved!

@ThomasSession ThomasSession merged commit 9c20ca2 into oxen-io:dev Jun 24, 2024
1 check passed
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.

4 participants