Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Jun 30, 2025

While a connection task is active, we listen for changes to ps_crud and use those to initialize a CRUD upload. With the old sync client, we also do this whenever we receive a token_expires_in line.

The Rust client was missing this functionality, causing it to miss local writes made while offline or disconnected. This could lead to local data accumulating and preventing subsequent checkpoints to be applied.

Closes #208.

@simolus3 simolus3 requested a review from stevensJourney June 30, 2025 20:40
Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

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

LGTM

@simolus3 simolus3 merged commit 015988c into main Jul 1, 2025
3 checks passed
@simolus3 simolus3 deleted the crud-upload-on-connect branch July 1, 2025 11:54
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.

New sync client doesn't recover from a connection failure on Android
2 participants