Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chien <[email protected]>
  • Loading branch information
stdrc committed Dec 17, 2024
1 parent e10c786 commit 1d9e42e
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/connector/src/parser/bytes_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl BytesAccessBuilder {

#[cfg(test)]
mod tests {
use itertools::Itertools;
use risingwave_common::array::Op;
use risingwave_common::row::Row;
use risingwave_common::types::{DataType, ScalarImpl, ToOwnedDatum};
Expand Down
1 change: 0 additions & 1 deletion src/connector/src/parser/csv_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ impl ByteStreamSourceParser for CsvParser {

#[cfg(test)]
mod tests {
use itertools::Itertools;
use risingwave_common::array::Op;
use risingwave_common::row::Row;
use risingwave_common::types::{DataType, ToOwnedDatum};
Expand Down
1 change: 0 additions & 1 deletion src/connector/src/parser/debezium/debezium_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ mod tests {
use std::ops::Deref;
use std::sync::Arc;

use itertools::Itertools;
use risingwave_common::catalog::{ColumnCatalog, ColumnDesc, ColumnId, CDC_SOURCE_COLUMN_NUM};
use risingwave_common::row::Row;
use risingwave_common::types::Timestamptz;
Expand Down
1 change: 0 additions & 1 deletion src/connector/src/parser/debezium/mongo_json_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ impl ByteStreamSourceParser for DebeziumMongoJsonParser {

#[cfg(test)]
mod tests {
use itertools::Itertools;
use risingwave_common::array::Op;
use risingwave_common::catalog::ColumnId;
use risingwave_common::row::Row;
Expand Down
1 change: 0 additions & 1 deletion src/connector/src/parser/debezium/simd_json_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ impl AccessBuilder for DebeziumMongoJsonAccessBuilder {
#[cfg(test)]
mod tests {
use chrono::{NaiveDate, NaiveTime};
use itertools::Itertools;
use risingwave_common::array::{Op, StructValue};
use risingwave_common::catalog::ColumnId;
use risingwave_common::row::{OwnedRow, Row};
Expand Down
1 change: 0 additions & 1 deletion src/connector/src/parser/maxwell/simd_json_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#[cfg(test)]
mod tests {
use itertools::Itertools;
use risingwave_common::array::Op;
use risingwave_common::row::Row;
use risingwave_common::types::{DataType, ScalarImpl, ToOwnedDatum};
Expand Down
2 changes: 1 addition & 1 deletion src/connector/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async fn into_chunk_stream_inner<P: ByteStreamSourceParser>(
let mut txn_started_in_last_batch = chunk_builder.is_in_transaction();
let process_time_ms = chrono::Utc::now().timestamp_millis();

for msg in batch.into_iter() {
for msg in batch {
if msg.is_cdc_heartbeat() {
// ignore heartbeat messages
continue;
Expand Down

0 comments on commit 1d9e42e

Please sign in to comment.