MCPcopy Create free account
hub / github.com/ActivityWatch/aw-server-rust / ServerState

Class ServerState

aw-server/src/endpoints/mod.rs:44–48  ·  view source on GitHub ↗

The Datastore is just a cheap handle to the DB worker thread (a crossbeam channel sender), which serializes all DB access internally. No mutex is needed here — wrapping it in one would serialize all HTTP requests, letting a slow query block every heartbeat.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected