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

Make DataChannel handler independent of currentlyReceivedEntry #34

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

xash
Copy link
Contributor

@xash xash commented Nov 20, 2024

Fix race condition where decoder sets received entry/payload while data channel lags behind.

Not sure how to write tests for this right now. But this will probably change anyway soon with the new format, so this is more of a quick fix so other PRs can build on this.

Fix race condition where decoder sets received entry/payload while data channel lags behind.
Copy link
Contributor

@sgwilym sgwilym left a comment

Choose a reason for hiding this comment

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

Great catch. Thank you!

@sgwilym sgwilym merged commit 6c22c02 into earthstar-project:main Nov 22, 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.

2 participants