| 274 | } |
| 275 | |
| 276 | Status PyServerMiddlewareFactory::StartCall( |
| 277 | const arrow::flight::CallInfo& info, const arrow::flight::ServerCallContext& context, |
| 278 | std::shared_ptr<arrow::flight::ServerMiddleware>* middleware) { |
| 279 | return SafeCallIntoPython([&] { |
| 280 | const Status status = |
| 281 | start_call_(factory_.obj(), info, context.incoming_headers(), middleware); |
| 282 | RETURN_NOT_OK(CheckPyError()); |
| 283 | return status; |
| 284 | }); |
| 285 | } |
| 286 | |
| 287 | PyServerMiddleware::PyServerMiddleware(PyObject* middleware, Vtable vtable) |
| 288 | : vtable_(vtable) { |
nothing calls this directly
no test coverage detected