Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Feb 6, 2025
1 parent f6934d1 commit fa91ea3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ impl Stream for OnDemandPerPartitionStream {
cx: &mut Context<'_>,
) -> Poll<Option<Self::Item>> {
if !self.is_requested && !self.sender.is_closed() {
self.sender.send_blocking(self.partition).map_err(|e| {
self.sender.try_send(self.partition).map_err(|e| {
internal_datafusion_err!(
"Error sending partition number to the receiver for partition {}: {}",
self.partition,
Expand Down Expand Up @@ -693,7 +693,7 @@ impl Stream for OnDemandRepartitionStream {
loop {
// Send partition number to input partitions
if !self.is_requested && !self.sender.is_closed() {
self.sender.send_blocking(self.partition).map_err(|e| {
self.sender.try_send(self.partition).map_err(|e| {
internal_datafusion_err!(
"Error sending partition number to the receiver for partition {}: {}",
self.partition,
Expand Down

0 comments on commit fa91ea3

Please sign in to comment.