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