forked from mihonapp/mihon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync: feat: syncing etag and overall improvement
* chore: don't log the access token from google. * fix: same device sync. When same device is initiating the sync just update the remote that. * refactor: throw early. When there is network failure or any sort during downloading just throw exception and stop syncing. * refactor(gdrive): stream the json. People with over 3k library can't sync because we are hitting OOM ```java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Failed to allocate a 370950192 byte allocation with 25165824 free bytes and 281MB until OOM, target footprint 333990992, growth limit 603979776```. This should fix that for them but only gdrive. * feat: a demo for sync with new api * refactor: perform early null checks * feat: restore even if push failed * feat: switch to protobuf * chore: show error notification when sync fails. * fix: update order by merge * fix: call pushSyncData twice * sync: match sync with latest SY changes and remove specific SY code Co-Authored-By: KaiserBh <[email protected]> Co-Authored-By: Cologler <[email protected]>
- Loading branch information
1 parent
b786126
commit b83de39
Showing
6 changed files
with
344 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.