Skip to content

Commit c1b0445

Browse files
fix: apply cargo fmt formatting fixes
1 parent e97523e commit c1b0445

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

binaries/cli/src/command/stop.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
use super::{Executable, default_tracing};
2-
use crate::common::{
3-
connect_to_coordinator, handle_dataflow_result, query_running_dataflows,
4-
};
2+
use crate::common::{connect_to_coordinator, handle_dataflow_result, query_running_dataflows};
53
use communication_layer_request_reply::TcpRequestReplyConnection;
64
use dora_core::topics::{DORA_COORDINATOR_PORT_CONTROL_DEFAULT, LOCALHOST};
75
use dora_message::cli_to_coordinator::ControlRequest;

binaries/daemon/src/lib.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,9 @@ impl Daemon {
961961
.log(
962962
LogLevel::Debug,
963963
Some("daemon".into()),
964-
format!("received NodeFailed event from {source_node_id} for {receiver_node_id}"),
964+
format!(
965+
"received NodeFailed event from {source_node_id} for {receiver_node_id}"
966+
),
965967
)
966968
.await;
967969

@@ -1776,7 +1778,7 @@ impl Daemon {
17761778

17771779
// Separate local and remote receivers to avoid borrow checker issues
17781780
let mut remote_receivers = Vec::new();
1779-
1781+
17801782
// Send one NodeFailed event per receiver node with all affected input IDs
17811783
for (receiver_node_id, affected_input_ids) in affected_by_receiver {
17821784
// Check if receiver is on this daemon (local) or another daemon (remote)
@@ -1806,9 +1808,12 @@ impl Daemon {
18061808
affected_input_ids,
18071809
error: error_message.clone(),
18081810
};
1809-
1811+
18101812
// Send to remote receivers using the same mechanism as regular outputs
1811-
if let Err(err) = self.send_to_remote_receivers(dataflow_id, &output_id, event).await {
1813+
if let Err(err) = self
1814+
.send_to_remote_receivers(dataflow_id, &output_id, event)
1815+
.await
1816+
{
18121817
tracing::warn!(
18131818
"Failed to send error event to remote receiver {}: {err:?}",
18141819
receiver_node_id

0 commit comments

Comments
 (0)