MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / compact_database

Method compact_database

libatomic/src/daemon/services_maintenance.rs:47–58  ·  view source on GitHub ↗
(
        &self,
        request: Request<CompactDatabaseRequest>,
    )

Source from the content-addressed store, hash-verified

45#[tonic::async_trait]
46impl MaintenanceService for MaintenanceImpl {
47 async fn compact_database(
48 &self,
49 request: Request<CompactDatabaseRequest>,
50 ) -> Result<Response<CompactDatabaseResponse>, Status> {
51 compact::compact(
52 &self.state,
53 request,
54 atomic_agent::turn::orchestrator::wait_budget::database_wait(),
55 )
56 .await
57 .map(Response::new)
58 }
59
60 async fn repair(
61 &self,

Callers

nothing calls this directly

Calls 2

database_waitFunction · 0.85
compactFunction · 0.50

Tested by

no test coverage detected