mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-12-03 20:41:50 +01:00
Start of step 6. The new pdfs-sched crate holds the admission port: a service describes each step of background work as a Step (its class and root), waits for a Permit from an Admission, and gives the capacity back by dropping it. Bounded admits a fixed number of steps at once. The mirror engine now asks SyncParts::admission before every upload, download and folder creation of a pass, instead of building a semaphore per batch. The daemon supplies Bounded with the old limit of 8 (SYNC_CONCURRENCY). Passes run one at a time and a batch waits for all its steps, so the behaviour is unchanged. An account-wide controller can replace the policy later without the engine changing.
23 lines
578 B
TOML
23 lines
578 B
TOML
[package]
|
|
name = "pdfs-sync"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
description = "The mirror engine's planner and pass model for the Proton Drive Linux client"
|
|
|
|
[dependencies]
|
|
pdfs-sched.workspace = true
|
|
pdfs-core.workspace = true
|
|
pdfs-drive.workspace = true
|
|
pdfs-store.workspace = true
|
|
proton-drive-rs.workspace = true
|
|
tracing.workspace = true
|
|
notify = "8"
|
|
parking_lot.workspace = true
|
|
sha1.workspace = true
|
|
tokio.workspace = true
|