async fn send_batch(
    upload_tx: &mut Sender<FlightData>,
    metadata: &[u8],
    batch: &RecordBatch,
    options: &IpcWriteOptions,
) -> Result<(), Box<dyn Error + Send + Sync + 'static>>