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

Method repair

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

Source from the content-addressed store, hash-verified

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

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