| 591 | } |
| 592 | |
| 593 | arrow::Result<CancelFlightInfoResult> FlightClient::CancelFlightInfo( |
| 594 | const FlightCallOptions& options, const CancelFlightInfoRequest& request) { |
| 595 | ARROW_ASSIGN_OR_RAISE(auto body, request.SerializeToBuffer()); |
| 596 | Action action{ActionType::kCancelFlightInfo.type, std::move(body)}; |
| 597 | ARROW_ASSIGN_OR_RAISE(auto stream, DoAction(options, action)); |
| 598 | ARROW_ASSIGN_OR_RAISE(auto result, stream->Next()); |
| 599 | ARROW_ASSIGN_OR_RAISE(auto cancel_result, CancelFlightInfoResult::Deserialize( |
| 600 | std::string_view(*result->body))); |
| 601 | ARROW_RETURN_NOT_OK(stream->Drain()); |
| 602 | return cancel_result; |
| 603 | } |
| 604 | |
| 605 | arrow::Result<FlightEndpoint> FlightClient::RenewFlightEndpoint( |
| 606 | const FlightCallOptions& options, const RenewFlightEndpointRequest& request) { |