| 1482 | } |
| 1483 | |
| 1484 | pub fn rebuild_session_index( |
| 1485 | &self, |
| 1486 | request: pb::RebuildSessionIndexRequest, |
| 1487 | ) -> CliResult<pb::RebuildSessionIndexResponse> { |
| 1488 | self.call(move |backend| async move { |
| 1489 | match backend { |
| 1490 | Backend::Local(state) => services_agent::ProvenanceImpl { state } |
| 1491 | .rebuild_session_index(Request::new(request)) |
| 1492 | .await |
| 1493 | .map(|response| response.into_inner()), |
| 1494 | Backend::Reactor(channel) => { |
| 1495 | let mut provenance = |
| 1496 | pb::provenance_service_client::ProvenanceServiceClient::new(channel); |
| 1497 | provenance |
| 1498 | .rebuild_session_index(request) |
| 1499 | .await |
| 1500 | .map(|response| response.into_inner()) |
| 1501 | } |
| 1502 | } |
| 1503 | }) |
| 1504 | } |
| 1505 | |
| 1506 | pub fn explain_turns( |
| 1507 | &self, |