Skip to main content

Module worker

Module worker 

Source
Expand description

Worker module - handles commands for a single repo.

Each worker owns exclusive access to the shared sled database for its repository. Commands are processed concurrently using tokio tasks, with sled’s internal MVCC handling concurrent access safely.

Actor ID is supplied per-command rather than being fixed at worker creation time, reflecting the shared-sled model where actor identity is authorship metadata rather than a storage partition.

Structs§

Worker
Worker state for a single repository

Enums§

WorkerMessage
Message sent to a worker