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 awaiting_network states from dochandle #363

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Conversation

pvh
Copy link
Member

@pvh pvh commented Jul 24, 2024

This removes the AWAITING_NETWORK and NETWORK_READY states from DocHandle -- instead, the Repo just waits until the networksubsystem is in a sync-able state before triggering synchronization.

Note that this patch caused me to notice (but not yet fix) a subtle problem: if you have no local data AND you try but do not succeed in connecting to the network, you will never enter "unavailable" and your handle will lurk in "loading" forever more.

I suspect we can untangle that particular problem as we go on the cleanup but I wanted to note it.

@pvh pvh force-pushed the network-detangle branch from dcc57e3 to 5b21dea Compare July 24, 2024 00:37
@pvh pvh force-pushed the network-detangle branch from 5b21dea to cd03dec Compare July 24, 2024 00:38
@pvh pvh merged commit 00fce66 into main Jul 24, 2024
2 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