youngsofun opened a new pull request, #3948:
URL: https://github.com/apache/arrow-rs/pull/3948
# Which issue does this PR close?
# Rationale for this change
1. PreparedStatement need `set_request_headers` for each request. In
particular, the token is required for auth in each request.
2. it is safe to clone `FlightSqlServiceClient `(supported by
`tower::service::Buffer`)
# What changes are included in this PR?
1. change
```
pub struct PreparedStatement<T> {
flight_client: FlightServiceClient<T>,
...
}
```
to
```
pub struct PreparedStatement {
flight_sql_client: FlightSqlServiceClient,
...
}
```
2. FlightServiceClient proxy not only `do_get`, but also `do_put`,
`do_action` etc. and `set_request_headers` for each request.
# Are there any user-facing changes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]