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

Method repair

atomic-cli/src/service/mod.rs:1554–1571  ·  view source on GitHub ↗
(&self, request: pb::RepairRequest)

Source from the content-addressed store, hash-verified

1552 }
1553
1554 pub fn repair(&self, request: pb::RepairRequest) -> CliResult<pb::RepairResponse> {
1555 self.call(move |backend| async move {
1556 match backend {
1557 Backend::Local(state) => services_maintenance::MaintenanceImpl { state }
1558 .repair(Request::new(request))
1559 .await
1560 .map(|response| response.into_inner()),
1561 Backend::Reactor(channel) => {
1562 let mut maintenance =
1563 pb::maintenance_service_client::MaintenanceServiceClient::new(channel);
1564 maintenance
1565 .repair(request)
1566 .await
1567 .map(|response| response.into_inner())
1568 }
1569 }
1570 })
1571 }
1572}
1573
1574// ---------------------------------------------------------------------------

Callers 4

statusFunction · 0.45
doctor_materialize_crdtFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected