(
&self,
request: pb::DispatchTurnEventRequest,
)
| 1333 | |
| 1334 | impl Service { |
| 1335 | pub fn dispatch_turn_event( |
| 1336 | &self, |
| 1337 | request: pb::DispatchTurnEventRequest, |
| 1338 | ) -> CliResult<pb::DispatchTurnEventResponse> { |
| 1339 | self.call(move |backend| async move { |
| 1340 | match backend { |
| 1341 | Backend::Local(state) => services_agent::ProvenanceImpl { state } |
| 1342 | .dispatch_turn_event(Request::new(request)) |
| 1343 | .await |
| 1344 | .map(|response| response.into_inner()), |
| 1345 | Backend::Reactor(channel) => { |
| 1346 | let mut provenance = |
| 1347 | pb::provenance_service_client::ProvenanceServiceClient::new(channel); |
| 1348 | provenance |
| 1349 | .dispatch_turn_event(request) |
| 1350 | .await |
| 1351 | .map(|response| response.into_inner()) |
| 1352 | } |
| 1353 | } |
| 1354 | }) |
| 1355 | } |
| 1356 | |
| 1357 | pub fn append_hook_log( |
| 1358 | &self, |
no test coverage detected