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

Load documents when receiving new network events #79

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

alexjg
Copy link
Collaborator

@alexjg alexjg commented Feb 24, 2025

Problem: when a peer responds to sync messages for a document which it has not currently loaded it doesn't attempt to load the document from disk. This means that attempting to request a document whilst simultanously syncing it with another machine could result in the dochandle resolving to an empty document.

Solution: ensure that the document is loaded if not already loaded when the sync message is received.

Problem: when a peer responds to sync messages for a document which it
has not currently loaded it doesn't attempt to load the document from
disk. This means that attempting to request a document whilst
simultanously syncing it with another machine could result in the
dochandle resolving to an empty document.

Solution: ensure that the document is loaded if not already loaded when
the sync message is received.
@alexjg alexjg merged commit e8c4ba7 into main Feb 24, 2025
8 checks 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.

1 participant