Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
datbth committed Sep 21, 2024
1 parent b153791 commit 04bde2b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions c_glib/arrow-flight-glib/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,23 @@ gaflight_call_options_foreach_header(GAFlightCallOptions *options,
}
}

/**
* gaflight_call_options_set_timeout:
* @options: A #GAFlightCallOptions.
* @value: The timeout value (in seconds).
*
* Set the timeout (in seconds).
*
* Since: 18.0.0
*/
void
gaflight_call_options_set_timeout(GAFlightCallOptions *options,
const gint64 *value)
{
auto flight_options = gaflight_call_options_get_raw(options);
flight_options->timeout = arrow::flight::TimeoutDuration(*value);
}

struct GAFlightClientOptionsPrivate
{
arrow::flight::FlightClientOptions options;
Expand Down

0 comments on commit 04bde2b

Please sign in to comment.