Skip to content

Commit

Permalink
fix stream
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka committed Nov 20, 2024
1 parent e18514c commit 2b89ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daft-connect/src/op/execute/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use common_daft_config::DaftExecutionConfig;
use futures::stream;
use spark_connect::{ExecutePlanResponse, Relation};
use tokio_util::sync::CancellationToken;
use tonic::{codegen::tokio_stream::wrappers::UnboundedReceiverStream, Status};
use tonic::{codegen::tokio_stream::wrappers::ReceiverStream, Status};

use crate::{
op::execute::{ExecuteStream, PlanIds},
Expand Down Expand Up @@ -61,7 +61,7 @@ impl Session {
}
});

let stream = UnboundedReceiverStream::new(rx);
let stream = ReceiverStream::new(rx);

let stream = stream
.map_err(|e| Status::internal(format!("Error in Daft server: {e:?}")))
Expand Down

0 comments on commit 2b89ce1

Please sign in to comment.