Skip to content

Commit

Permalink
fix: Don't unwrap send attempt to oneshot channel (#17566)
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion authored Jul 11, 2024
1 parent 0755fbf commit 5c821a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/polars-io/src/parquet/read/read_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,9 @@ impl BatchedParquetReader {
use_statistics,
hive_partition_columns.as_deref(),
);
tx.send((dfs, rows_read, limit)).unwrap();

// Don't unwrap send attempt - async task could be cancelled.
let _ = tx.send((dfs, rows_read, limit));
};

// Spawn the task and wait on it asynchronously.
Expand Down

0 comments on commit 5c821a2

Please sign in to comment.