Skip to content

Bump cooklang-sync-client to 0.6.2 #850

Open

Description

@dubadub

Why

cooklang-sync 0.6.2 fixes a first sync that never finishes for large libraries (#849): the client asked for the whole library in one request under a 60 s limit and kept nothing between attempts, so the app showed "Unexpected sync error" over an empty list.

In 0.6.2 (cooklang/cooklang-sync#57):

  • the download runs in batches, each written to disk before the next starts, so files appear as they arrive and a retry resumes where it stopped;
  • the multipart parser is much faster (a 60 MB test library: about 2 s instead of 26 s from a local server);
  • a batch in flight stops when sync is cancelled, and a stopped download no longer reports idle;
  • nothing is uploaded until the download pass has finished.

No API change in the client, and nothing to deploy on the server.

What to do

  • Change cooklang-sync-client from 0.6.0 to 0.6.2 in Cargo.toml and update Cargo.lock.
  • Run a sync against a fresh folder to check the download still completes.

Refs #849. The report there is about the iOS app; CookCLI uses the same client, so a first download of a large library into an empty folder would hit the same limit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions