Skip to content

Commit 5ab59e4

Browse files
author
Rickard Lundin
committed
async messed upp
1 parent aa695be commit 5ab59e4

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/chunked/arrow_converter.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,11 @@ impl<'a> Converter<'a> for Slice2Arrow<'a> {
262262
let emptyrb = arrow::record_batch::RecordBatch::new_empty(Arc::new(schema));
263263
let c = self.consistent_counter.get();
264264
let _ = &self.masterbuilders.sender.clone().unwrap().send(c, emptyrb);
265-
266-
265+
266+
// jh.spawn_blocking(async move {threaded_writer.1.await;});
267+
// threaded_writer.1.await.expect("The task being joined has panicked");;
268+
269+
267270
}
268271
}
269272

src/chunked/residual_slicer.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ impl<'a> Slicer<'a> for ResidualSlicer<'a> {
142142
info!("about to shudown converter...");
143143

144144
converter.shutdown(threaded_writer.1);
145+
// let hhh=threaded_writer.1;
146+
// rt.spawn(async {
147+
// hhh.await.unwrap();
148+
// });
149+
150+
// rt.spawn_blocking(async move {threaded_writer.1.await;});
145151
// threaded_writer.1.await.expect("The task being joined has panicked");;
146152
info!("converter has been shutdown");
147153

0 commit comments

Comments
 (0)