Skip to content

Commit 1f30087

Browse files
committed
remove mistaken Err, change to warning.
1 parent 7bff6d0 commit 1f30087

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/query/pipeline/sources/src/processors/sources/input_formats/input_pipeline.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use common_base::base::tokio::sync::mpsc::Sender;
2121
use common_base::base::GlobalIORuntime;
2222
use common_base::base::TrySpawn;
2323
use common_datablocks::DataBlock;
24-
use common_exception::ErrorCode;
2524
use common_exception::Result;
2625
use common_pipeline_core::processors::port::OutputPort;
2726
use common_pipeline_core::Pipeline;
@@ -247,10 +246,9 @@ pub trait InputFormatPipe: Sized + Send + 'static {
247246
} else {
248247
batch.truncate(n);
249248
tracing::debug!("read {} bytes", n);
250-
batch_tx
251-
.send(Ok(batch.into()))
252-
.await
253-
.map_err(|_| ErrorCode::UnexpectedError("fail to send ReadBatch"))?;
249+
if let Err(e) = batch_tx.send(Ok(batch.into())).await {
250+
tracing::warn!("fail to send ReadBatch: {}", e);
251+
}
254252
}
255253
}
256254
tracing::debug!("finished");

0 commit comments

Comments
 (0)