Skip to content

Commit

Permalink
chore: Remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
bakjos committed Mar 5, 2024
1 parent f862c7f commit b38d5fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/connector/src/sink/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ impl MqttSinkWriter {

let stopped = Arc::new(AtomicBool::new(false));
let stopped_clone = stopped.clone();

tokio::spawn(async move {
while !stopped_clone.load(std::sync::atomic::Ordering::Relaxed) {
match eventloop.poll().await {
Expand All @@ -195,7 +194,6 @@ impl MqttSinkWriter {
continue;
}
err => {
println!("Err: {:?}", err);
tracing::error!("Failed to poll mqtt eventloop: {}", err.as_report());
std::thread::sleep(std::time::Duration::from_secs(1));
}
Expand Down
7 changes: 4 additions & 3 deletions src/connector/src/source/mqtt/source/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ impl SplitReader for MqttSplitReader {
source_ctx: SourceContextRef,
_columns: Option<Vec<Column>>,
) -> Result<Self> {
let (client, eventloop) = properties
.common
.build_client(source_ctx.source_info.actor_id, source_ctx.source_info.fragment_id)?;
let (client, eventloop) = properties.common.build_client(
source_ctx.source_info.actor_id,
source_ctx.source_info.fragment_id,
)?;

let qos = properties.common.qos();

Expand Down

0 comments on commit b38d5fd

Please sign in to comment.